Byte-Sized-Chunks: Closures in Javascript
4.5 (2 ratings)
Instead of using a simple lifetime average, Udemy calculates a course's star rating by considering a number of different factors such as the number of ratings, the age of ratings, and the likelihood of fraudulent ratings.
1,530 students enrolled
Wishlisted Wishlist

Please confirm that you want to add Byte-Sized-Chunks: Closures in Javascript to your Wishlist.

Add to Wishlist

Byte-Sized-Chunks: Closures in Javascript

Use closures with confidence!
4.5 (2 ratings)
Instead of using a simple lifetime average, Udemy calculates a course's star rating by considering a number of different factors such as the number of ratings, the age of ratings, and the likelihood of fraudulent ratings.
1,530 students enrolled
Created by Loony Corn
Last updated 3/2016
Current price: $10 Original price: $20 Discount: 50% off
5 hours left at this price!
30-Day Money-Back Guarantee
  • 2 hours on-demand video
  • 18 Supplemental Resources
  • Full lifetime access
  • Access on mobile and TV
  • Certificate of Completion
What Will I Learn?
  • Use closures in Javascript with confidence
  • Understand what first class functions are, and why they are important
  • Implement private object properties using closures
View Curriculum
  • Any modern browser and a simple text editor are all that will be needed for the code examples
  • Some prior programming experience will definitely help

Note: This course is a subset of our much longer course 'Learn By Example: HTML, CSS and Javascript' so please don't sign up for both:-)

Closures and first class functions in Javascript - that's what this course is about.

This is not a course on Javascript frameworks - its about solid, fundamental Javascript. You'll be surprised by how much more you can get done on your web pages once you learn this the right way.

What do we mean by that?

  • Relatively few folks formally learn HTML, CSS or Javascript, because its quite easy to get stuff done in these technologies in a "quick-and-dirty way".
  • That "quick-and-dirty" way of learning and doing leads to problems over time, because Javascript and CSS are actually quite complex, so it is easy to do things the wrong way
  • This course will help, because it is entirely based on examples . Each is self-contained, has its source code attached, and gets across a simple, specific use-case. Each example is simple, but not simplistic.

What's Included:

  • Closures in Javascript are a rather mind-bending concept - functions that "remember" how the world looked when they were created.

Using discussion forums

Please use the discussion forums on this course to engage with other students and to help each other out. Unfortunately, much as we would like to, it is not possible for us at Loonycorn to respond to individual questions from students:-(

We're super small and self-funded with only 2 people developing technical video content. Our mission is to make high-quality courses available at super low prices.

The only way to keep our prices this low is to *NOT offer additional technical support over email or in-person*. The truth is, direct support is hugely expensive and just does not scale.

We understand that this is not ideal and that a lot of students might benefit from this additional support. Hiring resources for additional support would make our offering much more expensive, thus defeating our original purpose.

It is a hard trade-off.

Thank you for your patience and understanding!

Who is the target audience?
  • Nope! Please don't enroll for this class if you have already enrolled for our 13-hour course 'Foundations of HTML, CSS and Javascript' course
  • Yep! Folks who are seeking to learn Javascript the right way - including folks who may done some Javascript programming, but are not quite confident using closures
Compare to Other JavaScript Courses
Curriculum For This Course
12 Lectures
Closures: The Genie is out of the bottle!
12 Lectures 01:51:45

Properties are public by default, however it's often useful to have private properties. These are not natively supported in JS but we can fake them.
Example 26: Faking Public and Private Properties

Functions are first class citizens, they can be assigned to variables, returned from functions and passed as an argument into functions.
Preview 06:31

First class functions mean that we can pass them as arguments to functions.
Example 27: Functions as arguments to functions

Example 28: Functions that return functions

Numbers and strings are pass by value, which means that any modifications to their values in the functions are not reflected in the calling code.
Example 29: Arguments pass by value to functions

Arrays and objects are pass by reference, this means that modifications within functions are reflected in the calling code. But not reassignments! What's the difference? This lecture explains it all.

Example 30: Arguments pass by reference

Closures are mind-bendingly awesome. Each function carries around with it the context in which it was created!

Preview 18:42

Closure variables have precedence over local as well as global variables. You can't control the value of a variable that a nested functions sees!

Preview 08:51

Example 43: Closures with declared functions and function literals

The function parameters of the outer function also form part of the referencing environment in the closure.
Preview 05:43

About the Instructor
Loony Corn
4.3 Average rating
5,481 Reviews
42,683 Students
75 Courses
An ex-Google, Stanford and Flipkart team

Loonycorn is us, Janani Ravi and Vitthal Srinivasan. Between us, we have studied at Stanford, been admitted to IIM Ahmedabad and have spent years  working in tech, in the Bay Area, New York, Singapore and Bangalore.

Janani: 7 years at Google (New York, Singapore); Studied at Stanford; also worked at Flipkart and Microsoft

Vitthal: Also Google (Singapore) and studied at Stanford; Flipkart, Credit Suisse and INSEAD too

We think we might have hit upon a neat way of teaching complicated tech courses in a funny, practical, engaging way, which is why we are so excited to be here on Udemy!

We hope you will try our offerings, and think you'll like them :-)