.startWith()
.endWith()
.includes()
.repeat()
string.startsWith(searchvalue, start)
let str='abcdefgh'
str.startsWith('a')//true
str.startsWith('ab')//true
str.startsWith('bc',1)//true 大小寫敏感
str.endsWith("g",7) //true
const str1 = 'Cats are the best!';
console.log(str1.endsWith('best', 17)); //true