Scope & closures Flashcards

1
Q

Tokenizing / lexing

A

Breaking up a string of characters in source code into meaningful chunks.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Parsing

A

Taking a stream (array) of tokens and turning it into a tree of nested elements, which collectively represent the grammatical structure of the program. This tree is called the “Abstract Syntax Tree”, or AST.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Code-generation

A

The process of taking an AST and turning it into executable code. This process will vary greatly depending on the language, the platform it’s targeting, etc.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Scope

A

The set of rules that determines where and how a variable (identifier) can be looked up.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

LHS lookup

A

A lookup for the purposes of assigning a value to a variable.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

RHS lookup

A

A lookup for the purposes of retrieving the value stored in a variable.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

The type of error thrown on unfulfilled RHS lookups (when in strict mode)

A

ReferenceError

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

The type of error thrown on unfulfilled LHS lookups

A

TypeError

How well did you know this?
1
Not at all
2
3
4
5
Perfectly