Find online courses made by experts from around the world.
Take your courses with you and learn anywhere, anytime.
Learn and practice real-world skills and achieve your goals.
What do we mean by that?
Talk to us!
Not for you? No problem.
30 day money back guarantee.
Learn on the go.
Desktop, iOS and Android.
Certificate of completion.
|Section 1: Closures: The Genie is out of the bottle!|
You, This Course, and Us!Preview
|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.|
|Functions are first class citizens, they can be assigned to variables, returned from functions and passed as an argument into functions.|
|First class functions mean that we can pass them 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.|
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.
Closures are mind-bendingly awesome. Each function carries around with it the context in which it was created!
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!
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.|
Example 45: Closure variables cooler than global variablesPreview
Loonycorn is us, Janani Ravi, Vitthal Srinivasan, Swetha Kolalapudi and Navdeep Singh. Between the four of us, we have studied at Stanford, IIM Ahmedabad, the IITs and have spent years (decades, actually) 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
Swetha: Early Flipkart employee, IIM Ahmedabad and IIT Madras alum
Navdeep: longtime Flipkart employee too, and IIT Guwahati alum
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 :-)