No video

Frontend Interview Question | What are Closures? | Closures| Javascript Interview

  Рет қаралды 11,742

Nisha Singla

Nisha Singla

Күн бұрын

Hi Everyone
Closures are one of the important concept in Javascript and one of the asked Interview Question during technical discussion. Closures are must to learn concept if you are preparing for your javascript interview or working as senior developer as it will help you to write more organised code.
Watch the complete video till the end to understand it completely.
Along with Closures, we have also talk about lexical scope, scope and IIFE functions in javascript.
What is Lexical Scope?
A lexical scope in JavaScript means that a variable defined outside a function can be accessible inside another function defined after the variable declaration. But the opposite is not true; the variables defined inside a function will not be accessible outside that function.
What is Closures
In JavaScript, a closure is a function that references variables in the outer scope from its inner scope.
The closure preserves the outer scope inside its inner scope even after outer function is returned.
What is IIFE?
An IIFE (Immediately Invoked Function Expression) is a JavaScript function that runs as soon as it is defined.
It is a design pattern which is also known as a Self-Executing Anonymous Function
Check another important interview Question
• Frontend Interview Que...
Check video on Recursion
• What is Recursion | Ja...
Support my channel by liking and sharing my videos so that I can reach to wider audience. Please share it in your network 🙏
Connect with me on social platform:
Facebook: / angularjs4beginners
LinkedIn: / nisha-singla-82407aa0
Instagram : / nishasingla05
Twitter: / nishasingla05
For more such interesting videos, please subscribe to my channel and stay connected.
#Closures #frontEndInterview #JavascriptInterview

Пікірлер: 24
@CodeWithJamil786
@CodeWithJamil786 Жыл бұрын
Hello Nisha mam really your explaination are awesome. How we can use Closure in angular please make video on it
@PremKumar-ky5zl
@PremKumar-ky5zl Жыл бұрын
Finally, I understand closures. Thank you💌
@dilipdwiveedi1611
@dilipdwiveedi1611 2 жыл бұрын
Dear Nisha please create more videos on Reactjs on Hooks...As React is latest in demand in IT Industry
@sreedhar333
@sreedhar333 2 жыл бұрын
if you continue to do the same work for somemore time .....you win youtube play buttons...Advance congratulations....
@nanasarathi
@nanasarathi 2 жыл бұрын
Very informative 👍 Very clear 👍 thanks for sharing this video 🙏
@pranitingole5562
@pranitingole5562 2 жыл бұрын
Hello nisha mam, I follow you on Instagram I see your all content, that shows how deep knowledge you have , thanks for your valuable knowledge . 🙂
@isratjabin9063
@isratjabin9063 2 жыл бұрын
Best explanation
@sreedhar333
@sreedhar333 2 жыл бұрын
Hi Nisha....fantastic explanation.....thanks ....
@deepbpatel2183
@deepbpatel2183 Жыл бұрын
simply brilliant.
@Gimmiyimmy
@Gimmiyimmy 2 жыл бұрын
very well explained . thank you
@dharmeshsinha106
@dharmeshsinha106 2 жыл бұрын
mam... make a playlist of javascript which concepts is needed for angular undestandable for begginers...who want to initiate work in IT industry.
@RahulRaj-on8js
@RahulRaj-on8js 11 ай бұрын
awesome explanation 💯
@kumar_awadhesh
@kumar_awadhesh 2 жыл бұрын
Nice tutorial.... Thank you
@akiratoriyama1320
@akiratoriyama1320 2 жыл бұрын
Thank you very much!!
@hi-yi7en
@hi-yi7en 2 жыл бұрын
Call back fun in eventlisteners also having closures
@sarath2873
@sarath2873 2 жыл бұрын
Thank you
@naveenvanka6076
@naveenvanka6076 2 жыл бұрын
Nisha please create videos on rxjs operators for interview purpose
@TheTruRavi
@TheTruRavi 2 жыл бұрын
Hi Nisha, Can you send pls make video with GIT command? Thanks
@user-qe1sh7nf7o
@user-qe1sh7nf7o 8 ай бұрын
I am not able to run for loop , also product length is 0 , please help
@raj.blazers
@raj.blazers 2 жыл бұрын
Hi Nisha, Now that we have front end frameworks like Angular or even Javascript es6 classes can provide variable scope/private variables(not polluted) ,do closures still have importance?
@raj.blazers
@raj.blazers 2 жыл бұрын
Even I think where call,apply and bind methods are used these days.....(apart from interview qns)
@user-qv4je3he5k
@user-qv4je3he5k Жыл бұрын
online code editor font name please...
@suvigyabasnotra7378
@suvigyabasnotra7378 Жыл бұрын
Good explanation. Not great! Please use English properly. Was listening very carefully, but at same places you used variable instead of function and vice-versa or just mixed them, which caused confusion. The playlist idea is very nicely put through though.
@user-qy3kc5wb2b
@user-qy3kc5wb2b 2 жыл бұрын
Upor upor chala gaya kuch smjh nai aaya
Пройди игру и получи 5 чупа-чупсов (2024)
00:49
Екатерина Ковалева
Рет қаралды 4,3 МЛН
Get 10 Mega Boxes OR 60 Starr Drops!!
01:39
Brawl Stars
Рет қаралды 19 МЛН
What will he say ? 😱 #smarthome #cleaning #homecleaning #gadgets
01:00
What is Recursion | Javascript | Real World Examples
26:35
Nisha Singla
Рет қаралды 13 М.
A subscriber was asked these interview questions for a junior role
44:35
Closures in JS 🔥 | Namaste JavaScript Episode 10
22:44
Akshay Saini
Рет қаралды 813 М.