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.
2
Q
What is the foundation of our mental model?
A
Values.
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)