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