Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

compare string length javascript

const s1 = 'javascript';
const s2 = 'node.js';

console.log(s1.length > s2.length); // true
Source by learn.coderslang.com #
 
PREVIOUS NEXT
Tagged: #compare #string #length #javascript
ADD COMMENT
Topic
Name
7+6 =