JavaScript: Closures & Prototypes

ECMAscript 2019    |    Intermediate
  • 14 Videos | 1h 34m 24s
  • Includes Assessment
  • Earns a Badge
Likes 32 Likes 32
This 14-video course covers closures—the bundle of a function along with its enclosing environment—and its implications on factors such as variable scopes and function references. Key concepts covered here include what makes up a closure in Javascript; learning how variables of the same name inside closures and in scopes outside them are accessed by functions; and distinguishing between variables of the same name inside functions, within closures, and ones defined in a global scope. Begin by observing how to implement counter functions with closures; how to integrate closures with buttons on web pages; and how closures can be created within objects and implications on your code. Next, learn how closures created within loops interact with variables defined within and outside the loop; how to implement getter and setter functions for Javascript objects using closures; and learn when to use prototypes for objects and how to define them. Finally, observe how to distinguish between object prototypes and classes; learn to use prototypes to implement inheritance; and implement multiple levels of inheritance with prototypes.

WHAT YOU WILL LEARN

  • discover the key concepts covered in this course
    recognize what makes up a closure in JavaScript
    recall how variables of the same name inside closures and in scopes outside them are accessed by functions
    distinguish between variables of the same name inside functions, within the closure, and ones defined in a global scope
    implement counter functions with closures
    integrate closures with buttons on a web page
    recognize how closures can be created within objects and its implications on your code
  • recognize how closures created within loops interact with variables defined within and outside the loop
    implement getter and setter functions for JavaScript objects using closures
    identify when to use prototypes for JavaScript objects and how they can be defined
    distinguish between object prototypes and classes in JavaScript
    use prototypes to implement inheritance in JavaScript
    implement multiple levels of inheritance using prototypes
    summarize the key concepts covered in this course

IN THIS COURSE

  • Playable
    1. 
    Course Overview
    2m 10s
    UP NEXT
  • Playable
    2. 
    An Introduction to Closures
    9m 45s
  • Locked
    3. 
    Closures and Variables in Outer Scopes
    6m 40s
  • Locked
    4. 
    Closures and Variables in Nested Functions
    8m 32s
  • Locked
    5. 
    Closures and Counters
    5m 33s
  • Locked
    6. 
    Closures and Web Page Elements
    8m 26s
  • Locked
    7. 
    Closures and Objects
    7m 57s
  • Locked
    8. 
    Closures and Loops
    5m 47s
  • Locked
    9. 
    Getters and Setters Using Closures
    4m 23s
  • Locked
    10. 
    An Introduction to Prototypes
    7m 39s
  • Locked
    11. 
    Prototypes and Classes
    8m 5s
  • Locked
    12. 
    Basic Inheritance Using Prototypes
    7m 34s
  • Locked
    13. 
    Multi-level Inheritance with Prototypes
    4m 33s
  • Locked
    14. 
    Course Summary
    1m 20s

EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE

Skillsoft is providing you the opportunity to earn a digital badge upon successful completion of this course, which can be shared on any social network or business platform

Digital badges are yours to keep, forever.

PEOPLE WHO VIEWED THIS ALSO VIEWED THESE

Likes 121 Likes 121  
Likes 1176 Likes 1176