let a ='abc';let b ="123";let c =`${a+b}`;let d =`
First Line
Second Line
Third Line
`;let name ='Tom', age =19
console.log(1, a, b, c);
console.log(2, d);
console.log(3,`Hi, my name is ${name}. I am ${age}.`);
Info: Start process(上午11:33:17)1'abc''123''abc123'2'\nFirst Line\nSecond Line\nThird Line\n'3'Hi, my name is Tom. I am 19.'
Info: End process(上午11:33:17)
JavaScript字符串说明1、说明2、示例1、说明/*1、将一个值用单引号('')或者双引号("")引用起来就是字符串2、ES6提供了反引号(``)定义一个字符串,可以支持多行,还支持插值和插值运算*/2、示例let a = 'abc';let b = "123";let c = `${a+b}`;let d = `First LineSecond LineThird Line`;let name = 'Tom', age = 19console.log(1, a,