How javascript works?

How javascript works?

Javascript execution flow.