Learn the different ways of declaring and invoking JavaScript functions, the "subprograms" that power your code.
Overview
Syllabus
Introduction
- Welcome
- What you should know before watching this course
- Using the exercise files
- What are functions?
- Declaring functions
- Invoking functions traditionally
- Using functions as objects
- Invoking instances through the constructor
- Expanding functionality through prototype
- Understanding call-and-apply invocation
- Using the arguments parameter
- Returning values
- Challenge: Social media navigation
- Solution: Social media navbar
- Using anonymous closures
- Understanding hoisting and variable scope
- Creating and namespacing modules
- Passing arguments and setting module defaults
- Chaining module method calls
- Next steps
Taught by
Ray Villalobos