
JavaScript and React quiz
3 questions. No signup. Your move.
What was the original name of JavaScript when created in 1995?
Now make it a duel.
Play more questions on JavaScript and React in LearnClash. Challenge friends in a new quiz duel.
Play more in the appA tap copies this page’s link so the app can pick up where you left off.
That was every question in this preview. Pick another topic or keep going in the app.
A new quiz every day: Today’s quiz
The video couldn’t load. You can watch it on YouTube.
Choose a topic, answer questions and challenge a friend in LearnClash.
Watch on YouTubeA tap copies this page’s link so the app can pick up where you left off.
More questions about JavaScript and React
These visible examples show the question style. LearnClash turns the full topic into ranked duels and spaced repetition.
-
What animal is on the cover of the JavaScript 'Definitive Guide'?
Answer: Rhino
Why: The Mozilla Rhino JavaScript engine is named after the rhinoceros on this O'Reilly book's cover.
-
Why does React require keys when rendering list items?
Answer: Efficiently update elements
Why: React keeps key to itself: your component never receives it as a prop, so pass the ID separately if needed.
-
Which hook provides a way to access DOM nodes directly?
Answer: useRef
Why: A ref is a plain object with one current property, and changing it never triggers a re-render, unlike state.
-
Which JavaScript keyword declares a variable that cannot be reassigned?
Answer: const
Why: const locks the variable, not its contents, so you can still push items into a const array.
-
What three-dot notation allows expanding an array or object?
Answer: Spread operator
Why: Spreading arrays arrived with ES2015, but spreading objects had to wait until ES2018.
-
What allows a function to remember its lexical scope?
Answer: Closure
Why: A closure keeps its outer variables reachable even after the outer function returns, which is how JavaScript can emulate private variables.