Code skill Coding if statements

Here you can see how to code a JavaScript program that will pop-up an alert only if the value of your variable is true. If the value of your variable is false nothing will happen. If statements allow you to create interactive programs that change according to what the user does.

See the Pen M2 CS Coding if statements by Walker Books UK (@walkerbooks) on CodePen.