SOURCE

let x = "技术胖";
let y = `<b>非常高兴你能看到这篇文章</b>,我是你的老朋友${x}。<br/>这节课我们学习字符串模版。`;
console.log(y);

let a = 1;
let b = 2;
let result = `${a + b}`;
console.log(result);

/* 查找是否存在: */
let jspang = "技术胖";
let blog =
  "非常高兴你能看到这篇文章,我是你的老朋友技术胖。这节课我们学习字符串模版。";
console.log(blog.includes(jspang));

/* 判断开头是否存在: */
console.log(blog.startsWith(jspang));

/* 判断结尾是否存在: */
console.log(blog.endsWith(jspang));

console.log("jspang|".repeat(3));
console 命令行工具 X clear

                    
>
console