📜  typescript 字符串插值 - TypeScript 代码示例

📅  最后修改于: 2022-03-11 14:48:16.632000             🧑  作者: Mango

代码示例1
//Works only with ES6/ES2015 and above
let playerName:string = "Sachin Tendulkar";    
console.log(`${playerName} is the greatest cricketer of all time`)
 
//**** Output ****
//Sachin Tendulkar is the greates cricker of all time