how does a string compare in JS code example
Example 1: javascript compare strings
console.log(NaN===NaN);//false
Example 2: string comparison in javascript
console.log("10" == "10"); //True
console.log(parseInt(10) == 10); // True Best practice