Studying from the Inside Flashcards

1
Q

What are two ways to think about JS and other programming languages?

A

We can think about them internally from the point of being ‘inside the JS universe’ or we can look at it from the outside, from the 1 ands 0s or even from the silicon chips and currents.

The best mental model for understanding JS quirks in a practical way is to make sense of things from ‘within’ the JS universe.

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

What is the foundation of our mental model?

A

Values.

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

How do we think about values?

A
  • Each value belongs to a type
  • Primitive values are immutable
  • We point to values using wires (variables)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly