wiki/content/20201112095525-javascript_string_startswith_method.md

396 B

id title
8a5acfc2-e49c-4f3a-8823-00d7b57e8569 JavaScript String startsWith Method

Syntax

console.log('hello'.startsWith('hell')) // true
console.log('hello'.startsWith('ell', 1)) // true

See also