JSFiddle - React, Tailwind, and code Playground
by asle
HTML
<p>This is some text</p>
<span class="cm">Click me</span>
CSS
body, html {
font:12px verdana
}
.cm {
background-color:#ccc
}
JavaScript
$(function () {
$(".cm").click(function () {
// alert("mc");
var a = prompt("Check this value:")
alert(isNaN(a));
alert(a !== a);
})
var a = NaN;
return (a !== a); // true
});
//alert(isNaN('abcd')); // alerts true
//alert(isNaN('2.0')); // alerts false
//alert(isNaN(2.0));