odd JS behavior #611
Replies: 2 comments
-
Posted at 2016-08-27 by @allObjects I'm not sure what ECMA defines as 'return' from a statement. That's why some languages by definition return self / this except there is a coded return... a default return allows easy and especially with Espruino very fast cascading of messages sent / methods invoked to the very same object... |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-08-30 by @gfwilliams Interesting... I honestly wasn't aware that |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2016-08-27 by tve
run in node.js:
run in espruino:
similarly
if (x.b) 4; else 5;
returns 5 in node.js and undefined in Espruino.Beta Was this translation helpful? Give feedback.
All reactions