How do browsers parse and interpret JavaScript code?

后端 未结 2 1404
臣服心动
臣服心动 2020-12-31 05:12

How does a browser go about parsing JavaScript it loads from files or inline? I am trying to get at the core of what a browser does. What happens when a page loads and it ha

2条回答
  •  萌比男神i
    2020-12-31 05:34

    This is probably the best description of what a browser does according to the ECMAScript standard Javascript Closures: Identifier Resolution, Execution Contexts and scope chains

提交回复
热议问题