let s1 = '啦啦啦\n哈哈哈'
console.log(s1);
let s2 = `啦啦啦
哈哈哈`
console.log(s2);
let a = '-------'
let b = '啦啦啦'+a+'哈哈哈'
console.log(b);
let b1 = `啦啦啦${a}哈哈哈`
console.log(b1);
//
// 调用函数
function fn(){
return '祖国'
}
console.log(`亲爱的${fn()}你好`);
备注要使用es6模板拼接字符串只需要在${变量,函数}