Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js start with

const str = 'Linux is great';
console.log(str.startsWith('Linux is'));// true
console.log(str.startsWith('Windows is'));// false
console.log(str.startsWith('ux is', 3));// true
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #js #start
ADD COMMENT
Topic
Name
6+8 =