Back to All Challenges
Back to all challenges
The Vanishing User Object
Solve the "The Vanishing User Object" intermediate challenge. Focus: javascript syntax.
intermediatejavascript
Terminal
user@debugger:~/project$ node app.js
No runtime error is thrown — the function silently returns `undefined` instead of the expected user object. Accessing the result (e.g., `createUser("Alice", 30).name`) then causes `TypeError: Cannot read properties of undefined`.
user@debugger:~/project$ ▌
Test Cases (Click to expand)