JavaScript Fundamentals: how to Understand if / else statements

IF / ELSE Statements in JavaScript are the basic way of manipulating the actions of your code. With properly specified If / Else conditions, you will be in position to control what your code does and to make your code more efficient.