-
-
Save conanak99/efffa61155bf75e86269 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var name = "Bob", time = "today"; | |
// Cách cũ | |
console.log("Hello " + name + " how are you " + time + " ?"); | |
// Dùng string interpolation, để ý dấu ` | |
console.log(`Hello ${name}, how are you ${time}?`); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment