Module quiz: Introduction to JavaScript :Programming with JavaScript (Meta React Native Specialization) Answers 2025
1. You can run JavaScript in a browser console.
✔️ true
❌ false
2. Valid JavaScript comments:
❌ \ Comment 1
✔️ // Comment 2
❌ ## Comment 3
✔️ /* Comment 4 */
Correct answers: Comment 2 & Comment 4
3. Valid JavaScript data types:
✔️ string
✔️ number
✔️ boolean
✔️ null
(All four are valid)
4. Logical AND operator:
✔️ &&
❌ &
❌ ||
❌ |\
5. Assignment operator:
✔️ =
❌ ==
❌ ===
6. How many times will “Hello” print?
Loop: i = 0 to i = 5 → 6 times
✔️ 6
❌ 5
❌ 4
7. Output of the code:
i == 3 → truej < 5 → false (since 5 is NOT < 5)
Condition: true && false → false
So it prints Goodbye
✔️ Goodbye
❌ Hello
❌ Nothing
8. Output of the code:
i < 7 → falsej < 5 → true
Condition: false || true → true
So it prints Hello
✔️ Hello
❌ Goodbye
❌ Nothing
9. Result of !false:
✔️ true
❌ undefined
10. Meaning of ||
✔️ The logical OR operator
❌ AND
❌ NOT
📘 Summary Table
| Q.No | Correct Answer |
|---|---|
| 1 | true |
| 2 | // Comment 2, /* Comment 4 */ |
| 3 | string, number, boolean, null |
| 4 | && |
| 5 | = |
| 6 | 6 |
| 7 | Goodbye |
| 8 | Hello |
| 9 | true |
| 10 | Logical OR |