how to compare length of two strings in javascript code example
Example: compare string length javascript
const s1 = 'javascript';
const s2 = 'node.js';
console.log(s1.length > s2.length); // true
const s1 = 'javascript';
const s2 = 'node.js';
console.log(s1.length > s2.length); // true