📜  如何构建字符串 javascript es6 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:06.184000             🧑  作者: Mango

代码示例1
var name = "John" ;
var age = 32 ; 

console.log(`My name is ${name}, and I'm ${age} years old.`)
//displays : My name is John, and I'm 32 years old.