Lesson 3 of 4 · 6 min
Decisions in JavaScript
Just like Python, JavaScript uses if to make decisions. Conditions go in round brackets, code in curly braces.
Here the page reacts differently depending on the number you type.
Your turn: Add a message when the number is bigger than 100.
Code editor
Live preview