includes()
判断字符串是否包含某个元素
let str ='hello';
console.log(str.includes("el"));//true
startsWith()
判断字符串是否以某个元素开头
let str ='hello';
console.log(str.startsWith("el"));//false
endsWith()
判断字符串是否以某个元素结尾
let str ='hello';
console.log(str.endsWith('o'));//true