Javascript interview question | closures in javascript

Published: 14 April 2019
on channel: Code Sketched
2,979
67

Hello there,

Welcome to comscience simplified. In this week's video, we will look into closures in javascript which is one of the most important javascript interview questions.
We are planning to start out with a concept that is a hot favorite of many interviewers i.e. Scopes & Closures.
Today, we will take this common interview question with the 'for' loop and a variable in the closure scope to analyse the output of the code snippet.
We will look at a work-around solution and then, an efficient, optimized solution to this problem.

Here are some links to our other popular videos:

1. Learn about public-key cryptography
   • encryption explained | Public key cryptogr...  

2. maximum substring in a string (Google interview question)
   • Google Interview Question | Maximum subseq...  

3. How the javascript engine works?
   • How the Javascript engine works | The basics  

4. Real time median in a stream, another google interview question
   • Median in a stream | priority queue | max ...  

5. Understand the Javascript event loop
   • Javascript event loop | Every Javascript d...  

6. Understand Promises in javascript
   • JavaScript promises | Understand promises ...  

7. Git basics you must know
   • Git basics | 8 commands in 8 minutes | Git...  

This video makes use of Icons made by Flat Icons (https://www.flaticon.com/authors/flat...) from www.flaticon.com


On this page of the site you can watch the video online Javascript interview question | closures in javascript with a duration of hours minute second in good quality, which was uploaded by the user Code Sketched 14 April 2019, share the link with friends and acquaintances, this video has already been watched 2,979 times on youtube and it was liked by 67 viewers. Enjoy your viewing!