Lesson 10 of 18

⚙ JavaScript Intro

🎯 Grades 9–12 ⏱ ~35 minutes 🟡 Intermediate

What You'll Learn

  • Variables: const, let, and the data types: string, number, boolean, array, object
  • Operators, expressions, and control flow: if/else, for loops
  • How to run JavaScript in the browser console and in HTML pages
Quick Check

1. Which keyword declares a variable that can be reassigned?

Aconst
Blet
Cvar

2. Which comparison operator checks both value AND type?

A==
B===
C=

3. What is the output of: console.log(typeof 42)?

A"integer"
B"number"
C"string"

4. Which is a valid template literal?

A"Hello ${name}"
B`Hello ${name}`
C'Hello ${name}'