Void vs Undefined Quiz
Multiple Choice Medium
Question
What is the difference between `void` and `undefined` as return types?
Hint
Think about what a callback's return value means when it is ignored.
Explanation
void indicates the function's return value is not meant to be used — it can return anything. undefined means the function specifically returns the value undefined. This matters for callbacks: a void-returning callback can return anything, but an undefined-returning one must return undefined.
Look up unfamiliar terms
A beginner-friendly glossary explains jargon in plain English — variables, functions, DOM, Promise, and more.
Decode error messages
Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.
Build real projects
Apply what you learned by building guided projects with starter code and solutions.