If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Threaded View

JavaScript Execution Context

In general, compiled languages(Java, C, C++) and run-time languages(PHP, Phyton, JavaScript) have different scoping rules and execution order. I would suggest you to learn execution context for JavaScript to figure out basic understanding of how code is executed. Look at this post, http://yusufaytas.com/javascript-execution-context/