4 ms·
Not sure I'm call them odd -- it prints the same thing that would be printed without the "returns" (i.e., if the blocks contained only console.log calls), which
by re 5y ago
Not sure I'm call them odd -- it prints the same thing that would be printed without the "returns" (i.e., if the blocks contained only console.log calls), which is what I'd expect it to print: 'one' followed by 'three'. You're maybe thrown off because, while only one return statement can successfully return a value from the function, more than one can be executed, with their values evaluated.
- jonny_eh 5y ago> 'one' followed by 'three' Right! Those are the "odd" numbers! ;)