Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

compare strings js

const s1 = 'learn';
const s2 = 'today';

console.log(s1 === 'learn');  // true
console.log(s1 === s2);       // false
Source by learn.coderslang.com #
 
PREVIOUS NEXT
Tagged: #compare #strings #js
ADD COMMENT
Topic
Name
2+6 =