4 ms·
Uncaught SyntaxError: Illegal return statement You're trying to return the result of console.log, which is undefined, which you cannot return explicitly
by valbaca 5y ago
Uncaught SyntaxError: Illegal return statement
You're trying to return the result of console.log, which is undefined, which you cannot return explicitly
- Twixes 5y agoYou very much can return `undefined`, it's just that `return` only works inside of a function, not if you just copy the block of code into the console :)