r/loljs • • Jan 13 '20

Does this nightmare of a language always execute things in the wrong order?

Post image
5 Upvotes

4 comments sorted by

11

u/ipe369 Jan 13 '20

Does the function have async calls? 'cause that's just a language feature, not just js being dumb

Maybe the problem is you just don't know how to program in the language

→ More replies (2)

9

u/drumskirun Jan 14 '20

First, console.out is not a function, console.log is. If you're this new to the language then you have some reading up to do on the Event Loop.

https://stackoverflow.com/q/49563818/6567214

Secondly, the behavior of console.log is dependant on the runtime, it's not a standardized part of the language.

https://stackoverflow.com/q/23392111/6567214