Plenty of π
Module 3: Operators and User Interaction
Quiz: Quiz 3: Operators and User Interaction

1. What is the result of `10 % 3` in JavaScript?

2. Which operator is used for strict equality (checks value and type) in JavaScript?

3. What does the `prompt("Enter your age:", "18")` function return if the user types "25" and clicks OK?

4. What is the value of `x` after `let x = 5; x *= 2;`?

5. Which dialog box function returns a boolean value (`true` or `false`) based on user choice?

6. What is the result of the expression `!(5 > 10) && (3 < 4)`?

7. What does the `typeof` operator return for an array like `[1, 2, 3]`?

8. What is the value of `x` after `let x = 10; x++;`?

9. If `a = 5` and `b = "5"`, what is `a == b` and `a === b`?