• Contents:
  • Script setup in HTML
  • JavaScript Console
  • Variables
  • Variable names
  • Data Types
  • Data type: Number
  • Data type: String
  • Converting between number and string
  • Extended character sets: Unicode, UTF
  • Data type: Boolean
  • Data type: Array
  • Data type: Object
  • Basic objects
  • Data type: Null and Undefined
  • Assignment
  • Operators
  • Assignment
  • Mathematical
  • Destructuring Assignments
  • Relational, ie. comparisons
  • Logical, ie. Boolean logic tests
  • Precedence of operators
  • Maths functions
  • Conditionals
  • if
  • if, else
  • if, else if, else
  • Multiple conditions
  • The Ternary Conditional operator
  • Comparison issues
  • Switch{} and case statement
  • Loops
  • While {}
  • Do while {}
  • For {}
  • Breaking out of loops
  • For in, for of, forEach
  • Functions
  • Function arguments, or parameters
  • Arguments are optional
  • Default arguments
  • Rest arguments
  • Returning a value
  • Recursion
  • Closures
  • Arrow functions
  • Variable scope
  • Precedence of global and local variables
  • New scope declaration: let
  • Other points about "let"
  • The const declaration
  • Objects part 2: objects as classes
  • Adding methods
  • Memory Management and Garbage Collection
  • A p5.js example
  • The new Class statement
  • Code formatting, style, good practices, common mistakes
  • Comments
  • Indentation
  • Padding
  • Line continuation
  • Semicolons
  • Strict mode
  • Style checkers
  • Common mistakes
  • JavaScript versions
  • Performance, efficiency, profiling
  • The Bottom Line
  • To do: