Рет қаралды 105,502
#Javascript #FrontendInterview #AccioJob
Javascript Interview Questions on closures will be discussed in this video including topics like Lexical Scope, Scope Chain, Output based Questions, Once and Memoize Polyfills, etc.
Apply Now for free (AccioJob) : bit.ly/3M4V88q
AccioJob is an IIT Delhi alumni-led startup that runs a 6 month Pay after Placement Full Stack Web Dev Training. Students are trained on Data Structures and Algorithms, Full Stack Web Development and backend web development. Students get placed above 5 LPA. AccioJob students are working at Amazon, Walmart, VISA, BharatPe, Paytm, ThoughtWorks and 190+ more companies.
Key Highlights of the program:
- ZERO fees till Placement above 5 LPA in Software Development
- Average CTC: 8.3 LPA; Highest CTC: 41LPA
- Dedicated placement team & Interview preparation
- Industry-relevant Projects, Mock Interviews, Resume & Portfolio building
🟦 Follow me on Twitter and u will clear your interview 🤓 -
/ piyush_eon
⭐ Support the channel and learn from me One on One -
/ @roadsidecoder
📖 Blog for this video -
roadsidecoder.hashnode.dev/cl...
🔗 Var, Let and Const Interview Video -
• Javascript Interview Q...
🔗 Functions Interview Video -
• Javascript Interview Q...
🔗 JavaScript Interview Series -
• Javascript Interview Q...
🔗 Cars24 Interview Experience -
• Frontend Interview Exp...
🔗 Unacademy Interview Experience -
• Frontend Interview Exp...
🔗 MERN Stack Tutorial with Redux -
• MERN Stack Project Tut...
🔗 React Beginner's Project Tutorials -
• React JS Project Tutor...
-------------------------------------------------------------------------
00:00 Intro
00:33 What is Lexical Scope?
02:22 A great oppertunity for you!
03:38 Lexical Scope - Interview Question
04:52 What is Closure?
05:43 Example of Closures
06:56 Why Closure?
08:19 Closure Scope Chain
11:12 Question 1 - What will it print ?
13:09 Question 2 - Write a function for this
15:28 Question 3 - Time Optimisation with Closures
18:07 Question 4 - setTimeout + block scope with Closures
23:07 Question 5 - Create a private counter
25:48 Question 6 - What is Module Pattern?
27:31 Question 7 - Make this run only once
30:14 Question 8 - Once Polyfill Implementation
34:02 Question 9 - Memoise/Caching Implementation
39:37 Question 10 - Closure vs Scope
40:22 Written Article for this video
-------------------------------------------------------------------------
Special Thanks to our members -
Trevor M
Srinivas Ayyagari