Back to All Challenges
Back to all challenges
The Vanishing User Objects
Solve the "The Vanishing User Objects" intermediate challenge. Focus: javascript syntax.
intermediatejavascript
Terminal
user@debugger:~/project$ node app.js
No runtime error is thrown. The function returns an array of `undefined` values (e.g., [undefined, undefined]) instead of an array of user objects, because the curly braces are parsed as a function body block, not an object literal, and there is no return statement.
user@debugger:~/project$ ▌
Test Cases (Click to expand)