Skip to content

JS: Understand the Weird Parts

课程地址

notes

Conceptual Aside

syntax parser: someone else wrote a program to translate it to the complier.

Lexical enviroment

Execution context(Glocal execution context)

Global = not inside the function

所有的变量和函数都在 global object 里!// window object

scope: where a variable is available in ur code

dynamic typing // versus to Static Typing

operator: 实际上也是一种function! +(3, 4) => 3 + 4 //infix position