If Statement
Branching.
💡 THINK OF IT LIKE…
▸ YOUR TURN
Write: if (x > 0) { console.log("pos"); }
Tab indent · Shift+Tab outdent · ⌘/Ctrl + Enter submit · auto-pairs ( [ { " '
Click 'Run code' to execute your code in a real sandbox.
Branching.
Write: if (x > 0) { console.log("pos"); }
Click 'Run code' to execute your code in a real sandbox.