Learn about variables types, objects, arrays, operators, control structures, loops, and functions, then work through a series of hands-on examples that put these ideas into action.
Overview
Syllabus
Introduction
- Learn the language of the internet
- What you should know
- Using the exercise files
- Syntax: Learning to read and write
- Versions of JavaScript
- Places to tinker with JavaScript
- Our friend the text editor
- Additional helpful resources
- Declaring and assigning variables
- Strings
- String properties and methods
- Numbers
- Booleans and the quest for truth
- Objects
- Objects for modeling data
- Manipulating objects
- Jargon: References and objects
- Arrays
- Manipulating arrays
- Readability: Whitespace
- Readability: Comments
- Regular expressions
- Simple comparisons
- Arithmetic operators
- Logical operators
- Conditionals: If
- Conditionals: Switch
- Terse ifs
- Ternary operator
- Type checking
- For loops: Sequential
- For loops: Enumerative
- While loops
- Basic functions
- Arguments in functions
- More on arguments
- Objects, references, and functions
- Functions are objects
- Jargon: Scope in JavaScript
- Variable scope in functions
- Jargon: Callback functions
- Asynchronous code: The waiting is the hardest part
- Promises, async, and await
- Object-oriented JavaScript: Prototypes and classes
- Jargon: Strong vs loose typing
- Modern JavaScript tooling
- Next steps
Taught by
Joe Chellman