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