3 ms·
Coffeescript returns the last line always, all you needed to do was add a 'return null' (or just 'return') as the last line in the function. You have to be exp
by tdy721 11y ago
Coffeescript returns the last line always, all you needed to do was add a 'return null' (or just 'return') as the last line in the function.
You have to be explicit in Vanilla JS to return things or it just return null. Coffeescript explicitly returns the last line every time.