In JavaScript and some other weakly typed languages, you can put almost anything inside an if expression. For example, in JavaScript, you can do something like this:
if (0) alert("YEAH!") else alert("NO!")
You are currently reading a PREVIEW of this book.
Get instant access to over
$1 million worth of books and videos.