Skip to content

Instantly share code, notes, and snippets.

@conanak99
Created Mar 9, 2016
Embed
What would you like to do?
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