📜  字符串中的节点 js 变量 - Javascript 代码示例

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

代码示例2
// in your string you can call your variable like ${myVar}. eg:
var myVar = "blue";
console.log("The sky is " + myVar + ".");
// Output: "The sky is blue."