function createIncrement() { let count = 0; function increment() { count++; console.log(count); } function log() { let message = `Count is ${count}`; console.log(message); } return [increment, log]; // when this has finished returning, closure forms with child functions } const[increment, log] = createIncrement(); increment(); increment(); increment(); log(); //most imprttant question.. same instance of count variable will be shared by increment() and log() ... hence 1 2 3 1
@ankitamaru97124 ай бұрын
Helpful mind build tricks snippets. Thank you
@ketanthorat43375 ай бұрын
@Vasanth Bhat those videos are total gems for interviews. Thank you sir for sharing them
@careerwithvasanth4 ай бұрын
You're welcome
@ore_wa_king5 ай бұрын
Hi Vasant, thanks for the video. I got all the snippets correctly, thanks to your other videos 🙌
@careerwithvasanth4 ай бұрын
Great job!
@kishorjha50284 ай бұрын
love this series sir , please make more video like this
@careerwithvasanth4 ай бұрын
Noted, I will surely make more such content
@ore_wa_king5 ай бұрын
Hi Vsant, thanks for the video. I got all the 10 snippets correctly, thanks to your earlier videos 🙌
@careerwithvasanth4 ай бұрын
Wonderful !! keep it up !
@ayaniegain4 ай бұрын
Suppose I'm a frontend developer, but I want to build a project like a video calling app or a WhatsApp messenger. I think in that case I need to learn backend concepts as well. Is it justified to say that a project of this type can be built with only frontend skills, considering that I'm only a frontend developer?
@careerwithvasanth4 ай бұрын
Hi, Join our 3100+ member Career with Vasanth telegram group here, you can discuss things like this and a lot of opening related information is also shared here: t.me/uncommongeek
@ayaniegain4 ай бұрын
@@careerwithvasanth thankyou
@mahalingappabirajdar52854 ай бұрын
Thanks for the great tips, I really appreciate them
@careerwithvasanth4 ай бұрын
Glad you like them!
@khanapeena21915 ай бұрын
🔥
@SumitSharma-do2uc22 күн бұрын
bhai or thodi low voice m record krni thi video...abhi voice bhot jyada h next time please be remember
@careerwithvasanth19 күн бұрын
Noted
@rajeshshetty19722 ай бұрын
typeof null is object
@shubhanshusahuu5 ай бұрын
Helpful video
@careerwithvasanth4 ай бұрын
Glad to hear that
@hkdelhivlogs5 ай бұрын
Ans 1: 1 2 1
@seshasai30844 ай бұрын
pls do videos in dark mode its effecting our eyes in the night time
@careerwithvasanth4 ай бұрын
Noted, from next video onwards it will be in dark mode.
@ngayathri18185 ай бұрын
Typeof null is object in JS
@careerwithvasanth4 ай бұрын
Perfect !
@mukulyadav63545 ай бұрын
can you please zoom the ide from next time
@careerwithvasanth4 ай бұрын
Feedback taken !! I will take care of it.
@nuthanam494 ай бұрын
type of null is object
@careerwithvasanth4 ай бұрын
Correct !
@funbuzzz015 ай бұрын
8/10
@careerwithvasanth4 ай бұрын
Good, little scope for improvement !
@surajsuryawanshi864Ай бұрын
6/10
@madhanrock53905 ай бұрын
Exercise 1: 1,2,1 because of closure behavior Exercise 2: 'DATA RETRIEVED' after 1500ms Exercise 3: function greet is hoisted, sayHi is not hoisted O/P: 'Hello John' 'Hi there' Exercise 7: If want to print the actual output then we need call like const greet = person.greet.bind(person) greet()