📅  最后修改于: 2022-03-11 15:04:26.935000             🧑  作者: Mango
const str1 = 'Saturday night plans';
console.log(str1.startsWith('Sat'));
// expected output: true
console.log(str1.startsWith('Sat', 3));
// expected output: false