✅ True/False Questions
1. A JavaScript function can take multiple parameters.
👉 True
2. Every JavaScript function must have a return statement.
👉 False
3. Arrow functions automatically bind the value of this from their
surrounding scope.
👉 True
4. Inline event handling like <button
onclick="myFunc()">Click</button> is not allowed in
JavaScript.
👉 False (it is allowed, though not best practice)
5. The addEventListener() method allows attaching multiple
handlers for the same event.
👉 True
6. JavaScript functions can be stored in variables.
👉 True
7. The onload event triggers when the whole page (including
images) has loaded.
👉 True
8. The onchange event triggers when a user changes the value of
an input and moves out of it.
👉 True
9. Functions in JavaScript cannot return another function.
👉 False (functions are first-class citizens, they can return other
functions)
10. An event can only be triggered by the user, not by code.
👉 False (events can be triggered programmatically using
dispatchEvent())