Here's the code:
DEMOCode:<input type="number" value="0" id="input"> <script> if (document.getElementById('input').value == 0) { alert('Hello, world!'); } </script>
And here's the JSLint error:
But when I listen to the advice and changeExpected '===' and instead saw '=='.==
to===
, the alert stops appearing.
Bookmarks