Skip to content

Module quiz: Introduction to JavaScript :Programming with JavaScript (Meta Front-End Developer Professional Certificate) Answers 2025

1. You can run JavaScript in a web browser’s devtools console.

True ✔️
False ❌


2. Valid JavaScript comments (Select all that apply)

\ Comment 1 ❌ (invalid)
// Comment 2 ✔️

Comment 3 ❌ (not JS syntax)

/* Comment 4 */ ✔️

Correct answers: Comment 2 & Comment 4


3. Valid JavaScript data types (Select all that apply)

string ✔️
number ✔️
boolean ✔️
null ✔️

(All four are valid)


4. Logical AND operator in JavaScript

& ❌
&& ✔️
|| ❌
|\ ❌


5. Assignment operator

= ✔️
== ❌
=== ❌


6. How many times will “Hello” print?

Loop: i = 0 to i = 5 → runs 6 times.

Correct: 6 ✔️
4 ❌
5 ❌


7. Output of the code (i = 3, j = 5)

Condition: i == 3 && j < 5
→ j < 5 is false → else runs.

Goodbye ✔️
Hello ❌
Nothing ❌


8. Output (i = 7, j = 2)

Condition: i < 7 || j < 5
→ j < 5 is true → prints Hello

Hello ✔️
Goodbye ❌
Nothing ❌


9. Result of !false

true ✔️
undefined ❌


10. Meaning of || operator

Logical AND ❌
Logical OR ✔️
Logical NOT ❌


📘 Summary Table

Q Correct Answer ✔️
1 True ✔️
2 // Comment 2, /* Comment 4 */ ✔️
3 string, number, boolean, null ✔️
4 && ✔️
5 = ✔️
6 6 times ✔️
7 Goodbye ✔️
8 Hello ✔️
9 true ✔️
10 Logical OR ✔️