📜  javascript $ 符号函数 - Javascript 代码示例

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

代码示例1
//Javascripts $ function is used to call functions/variables inside a string without using concatenations
let variableExample = 10;

let result = `${variableExample} text`;

console.log(result);
//output = 10 text
//this only works with backtick (` `) and not with single or double quotes