Vocab Flashcards

1
Q

Namespace

A

A container for variables and functions.

Typically to keep variables and functions with the same name separate.

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

Expression

A

A unit of code that results in a value.

It doesn’t have to save to a variable.

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

Mutate

A

To change something

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

Immutable

A

It can’t be changed

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

What is JavaScript?

A

A single-threaded non-blocking asynchronous concurrent language. Adds interactivity to a webpage.

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

What is a Call Stack?

A

One thread–> One Call Stack –> One Thing at a Time.

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

JavaScript runtime can do ___ thing a time, but the browser can do multiple things at a time.

A

one

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

How does the JavaScript Event Loop work?

A

The event loop is the term given to the process of the waiting for the queue to receive a message synchronously. The increment that the event loop moves in is called a ‘tick’, and every time it ‘ticks’ it checks if the call stack is empty, if so, it adds the top function in the event queue to the call stack and executes it. Once it is finished processing this function it.

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

What is the call stack?

A

Every time a function is about to be executed in JavaScript it gets added to the Stack. If that function calls another function within it then that function gets called to the top of the stack.

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

What is the event queue?

A

JavaScript runtimes contain a message queue which stores a list of messages to be processed and their associated callback functions.

It stores the order of the functions that they will be executed in and passes them to the call stack as they are requested.

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

What is v8?

A

A Google open source javascript and webassembly engine, written in C++. It’s used in chrome and in node.js.

v8 can run standalone or be embedded into any C++ application.
It implements ECMAScript and WebAssembly.

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