🗒 Cheat Sheet← Lesson
BitWithBite
JavaScript Worksheet

⚡ Conditional Statements

Chapter: JavaScript · Level ★☆☆ · Time: 30 min
SCORE___ / 20
NameClassDate
After this worksheet you can
Write if/else if/elseUse the ternary operatorUnderstand truthy/falsySwitch statements

🧠 Section A · Concept Check ● BEGINNER 4 × 1 = 4

1'else if' lets you:
2cond ? a : b is the:
3Which is falsy?
4switch compares with:

🧮 Section B · Problem Solving ● INTERMEDIATE 2 + 3×3 = 11

5if (x 18) checks adult (at least 18).
6Empty string '' is (truthy/falsy).
7Write if/else printing 'even' or 'odd' for n.
8Rewrite with ternary: pass = score>=50 ? 'Pass':'Fail'.
9List three falsy values.

🚀 Section C · Challenge ● CHALLENGE 5

10When is switch nicer than if/else?
💭 Reflection — the most useful thing I learned:
A ___/4   B ___/11   C ___/5   Total ___/20 Teacher's Signature Parent's Signature
✂ answer key — fold or cut before handing out

1-B   2-B   3-B   4-B  |  5 >=   6 falsy   7 = if(n % 2 === 0){...even}else{...odd}   8 = const pass = score >= 50 ? 'Pass' : 'Fail';   9 = 0, '', null (also undefined, NaN, false)  |  10 = Many exact-match cases on one value

📄 Need offline practice?Download the print-ready PDF or open the one-page cheat sheet.
⬇ Worksheet PDF 🗒 Cheat Sheet