Consider the following example – this is valid JavaScript! But just by looking at it, that seems unlikely… Try copying the code portion into a browser console and see for yourself.
$ cat redef-keywords.js
if = isNaN;
if (NaN)
console.log("This line will never be printed.");
$ node redef-keywords.js
This line will never be printed.
$