JavaScript String startsWith Method
Syntax
console.log('hello'.startsWith('hell')) // true
console.log('hello'.startsWith('ell', 1)) // trueSee also
- [JavaScript String endsWith Method](JavaScript String endsWith Method)
- [JavaScript String Prototype Methods](JavaScript String Prototype Methods)