📜  f 字符串 javascript 代码示例

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

代码示例3
//

const firstName = 'john';
const lastName = 'smith';

const output = `name: ${firstName}, surname: ${lastName}`;
// name: john, surname: smith