📜  javascript 字符串以 - Javascript 代码示例开头

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

代码示例6
const s = 'I am going to become a FULL STACK JS Dev with Coderslang';

console.log(s.startsWith('I am'));             // true
console.log(s.startsWith('You are'));          // false