I have two variables;
var x = '23b';
var y = '23a';
Now i have a logic which will compare, if they're equal i want to perform something
Note: Both when compared, if both are NaN still they should pass the condition
i have tried using this
if (Number(x) == Number(y))
This returns false even though both are NaN