Make Decisions
Learn how to control the flow of logic using branching.
We'll cover the following...
Now that JavaScript can remember things, let’s teach it to think—by making decisions with if
, else if
, and else
logic!
Goals
You’ll learn to:
Use
if
,else if
, andelse
to make decisions.Compare values with
===
,>
,<
, etc.React differently based on input or data. ...