match two strings 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
console.log(NaN===NaN);//false
console.log("10" == "10"); //True
console.log(parseInt(10) == 10); // True Best practice