-
meta
- overview
- audience
- what we'll learn
- what we won't learn
- getting examples
- working with the browser
- where to get help
-
variables
- overview
- declaring variables
- defining variables
- manipulating values via variables
- non-string variables
- re-assigning variables
- practice
-
functions
- overview
- defining a function
- calling a function
- variable scope in functions
- example with numbers
- example with strings
- practice
- tests
-
types
- overview
- the typeof function
- number types and arithmetic expressions
- extending the number operations with Math
- string types and built-in methods
- boolean types and boolean expressions
- creating functions to test types
- practice
- tests
-
conditionals (if-statements)
- overview
- if-statements
- else clauses in if-statements
if
-else if
and nestedif
statements- writing robust functions (throwing errors on types)
- practice
- tests
-
loops
- overview
- while-loops as generalizations of if-statements
- for-loops
- calculating properties using a loop
- transforming strings with for-loops
- breaking out of a loop
- iterating backwards
- practice
- tests
-
arrays
- overview
- defining an array
- accessing elements of an array
- mutating an array
- using variables for indices
- strings as special arrays
- examples
- practice
- tests
-
array methods
- overview
- forEach
- map
- chaining methods that return arrays
- filter
- some and every
- reduce
- converting between strings and arrays
- practice
- tests
-
objects
- overview
- defining an object
- accessing elements of an object
- mutating an object
- using variables for keys
- using array functions on objects
- arrays of objects
- nested objects
- practice
- tests
-
poker simulation
- overview
- poker
- practice
- tests
- simulation