Syllabus

  1. 01IntroductionMeet JavaScript: print to the console, leave comments for other people, and work with JavaScript's basic data types, arithmetic, and the properties and methods built into strings, numbers and Math.9 lessons
    1. 01Welcome to JavaScript
    2. 02Printing with console.log()
    3. 03Comments
    4. 04Data Types
    5. 05Arithmetic Operators
    6. 06Joining Strings
    7. 07Properties and Methods
    8. 08Built-in Objects
    9. 09Introduction quiz
  2. 02VariablesStore values under descriptive names with const and let, update numbers and strings, build messages with template literals, and check a value's type with typeof. Finish by planning the fuel budget for a road trip.8 lessons
    1. 01Variables and const
    2. 02Changing Values with let
    3. 03Updating Numbers
    4. 04Strings and Variables
    5. 05Template Literals
    6. 06Checking Types with typeof
    7. 07Project: Road Trip Fuel Planner
    8. 08Variables quiz
  3. 03ConditionalsTeach your programs to make decisions with if, else and else if, compare values, combine conditions with logical operators, lean on truthy and falsy values, and pick between options with the ternary operator and switch.9 lessons
    1. 01if and else
    2. 02Comparison Operators
    3. 03Logical Operators
    4. 04Truthy and Falsy Values
    5. 05The Ternary Operator
    6. 06else if
    7. 07The switch Statement
    8. 08Project: Plant Care Helper
    9. 09Conditionals quiz
  4. 04FunctionsPackage code into reusable functions: declare and call them, pass in arguments, set default parameters, return results, combine helper functions, and write the same ideas as function expressions and arrow functions.9 lessons
    1. 01Declaring and Calling Functions
    2. 02Parameters and Arguments
    3. 03Default Parameters
    4. 04Returning Values
    5. 05Helper Functions
    6. 06Function Expressions
    7. 07Arrow Functions
    8. 08Project: Bill Splitter
    9. 09Functions quiz
  5. 05ScopeLearn where variables can be used: the global scope, block scope inside functions and if statements, why too many global variables cause bugs, and how to keep each variable in the smallest scope it needs.6 lessons
    1. 01Blocks and Global Scope
    2. 02Block Scope
    3. 03Scope Pollution
    4. 04Practice Good Scoping
    5. 05Project: Scope Bug Hunt
    6. 06Scope quiz
  6. 06ArraysStore lists of values in arrays: create them, read and update elements by index, add and remove items with push, pop, shift and unshift, search and copy with indexOf, includes and slice, and work with arrays inside functions and inside other arrays.9 lessons
    1. 01Creating Arrays
    2. 02Accessing Elements
    3. 03Updating Elements
    4. 04length, push() and pop()
    5. 05More Array Methods
    6. 06Arrays and Functions
    7. 07Nested Arrays
    8. 08Project: Concert Setlist
    9. 09Arrays quiz
  7. 07LoopsRepeat work without repeating code: count up and down with for loops, walk through arrays, nest loops inside loops, keep going until a condition changes with while and do...while, and control a loop with break and continue.9 lessons
    1. 01The for Loop
    2. 02Looping Backwards
    3. 03Looping Through Arrays
    4. 04Nested Loops
    5. 05The while Loop
    6. 06The do...while Loop
    7. 07break and continue
    8. 08Project: Word Counter
    9. 09Loops quiz
  8. 08Higher-Order Functions and IteratorsTreat functions as values and pass them to other functions. Then use the built-in array iterator methods, forEach, map, filter, find, findIndex, reduce, some and every, to replace hand-written loops with clear one-liners.10 lessons
    1. 01Functions as Data
    2. 02Functions as Parameters
    3. 03forEach()
    4. 04map()
    5. 05filter()
    6. 06find() and findIndex()
    7. 07reduce()
    8. 08some(), every() and Choosing a Method
    9. 09Project: Review Moderator
    10. 10Iterators quiz
  9. 09ObjectsModel real things with objects: create object literals, read properties with dot and bracket notation, add, change and delete properties, store functions as methods, nest objects and arrays, understand references, and loop over properties with for...in.9 lessons
    1. 01Creating Objects
    2. 02Accessing Properties
    3. 03Adding, Changing and Deleting Properties
    4. 04Methods
    5. 05Nested Objects
    6. 06Objects and References
    7. 07Looping with for...in
    8. 08Project: Library Checkout
    9. 09Objects quiz
  10. 10Advanced ObjectsGo deeper with objects: refer to an object from its own methods with this, see why arrow functions behave differently, signal privacy, control access with getters and setters, build objects with factory functions, unpack them with destructuring, and use Object.keys, values, entries and assign.9 lessons
    1. 01The this Keyword
    2. 02Arrow Functions and this
    3. 03Privacy
    4. 04Getters
    5. 05Setters
    6. 06Factory Functions
    7. 07Destructuring
    8. 08Built-in Object Methods
    9. 09Advanced objects quiz