YDKJS Book 1, Chapter 2
NOTES:
- The best and most natural approach is to use arrays for numerically positioned values and use
object
s for named properties.
==
checks for value equality with coercion allowed, and===
checks for value equality without allowing coercion;===
is often called "strict equality" for this reason.
- Not only can you pass a value (argument) to a function, but a function itself can be a value that's assigned to variables, or passed to or returned from other functions. As such, a function value should be thought of as an expression, much like any other value or expression.
No comments:
Post a Comment