JavaScript: Closures & Prototypes
ECMAscript 2019
| Intermediate
- 14 Videos | 1h 28m 24s
- Includes Assessment
- Earns a Badge
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 courserecognize what makes up a closure in JavaScriptrecall how variables of the same name inside closures and in scopes outside them are accessed by functionsdistinguish between variables of the same name inside functions, within the closure, and ones defined in a global scopeimplement counter functions with closuresintegrate closures with buttons on a web pagerecognize 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 loopimplement getter and setter functions for JavaScript objects using closuresidentify when to use prototypes for JavaScript objects and how they can be defineddistinguish between object prototypes and classes in JavaScriptuse prototypes to implement inheritance in JavaScriptimplement multiple levels of inheritance using prototypessummarize the key concepts covered in this course
IN THIS COURSE
-
1.Course Overview2m 10sUP NEXT
-
2.An Introduction to Closures9m 45s
-
3.Closures and Variables in Outer Scopes6m 40s
-
4.Closures and Variables in Nested Functions8m 32s
-
5.Closures and Counters5m 33s
-
6.Closures and Web Page Elements8m 26s
-
7.Closures and Objects7m 57s
-
8.Closures and Loops5m 47s
-
9.Getters and Setters Using Closures4m 23s
-
10.An Introduction to Prototypes7m 39s
-
11.Prototypes and Classes8m 5s
-
12.Basic Inheritance Using Prototypes7m 34s
-
13.Multi-level Inheritance with Prototypes4m 33s
-
14.Course Summary1m 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.