Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript string starts with

const s = 'I am going to become a FULL STACK JS Dev with Coderslang';

console.log(s.startsWith('I am'));             // true
console.log(s.startsWith('You are'));          // false
Source by learn.coderslang.com #
 
PREVIOUS NEXT
Tagged: #javascript #string #starts
ADD COMMENT
Topic
Name
6+7 =