Javascript: Read more

This class is not a comprehensive introduction to JavaScript (JS). Instead the links below capture aspects of JS most relevant to React and the other tools we will be using this semester. For a more complete introduction to JavaScript, check out Eloquent JavaScript (and other links on the course page).

In particular note the short-hand syntax for creating and de-structuring objects (a type analogous to a Python dictionary) we will use those techniques frequently. Also note the “higher order” array methods (e.g., map, etc.) we discussed in class. We generally prefer those methods to using loops (to reduce “gotchas” around closures and chance of mutating state in React components).


© Laura Biester, Michael Linderman, and Christopher Andrews 2019-2024.