How Javascript Works? - Call Stack, Event Loop and Queues Explained

Поділитися
Вставка
  • Опубліковано 7 лис 2024

КОМЕНТАРІ • 41

  • @shubhtalk7073
    @shubhtalk7073 День тому +5

    No one can beat you when its comes to explanation ❤

  • @rajkir2852
    @rajkir2852 День тому +9

    Also video on how node handles 1000s of request at a time we need

  • @RakeshKumar-vo3ih
    @RakeshKumar-vo3ih 11 годин тому

    tusi chha gye sir, pahli bar samaj me aaya ye lafda, javascript ka...

  • @Danish-saifi1
    @Danish-saifi1 6 годин тому

    the way he explains can't be explained in words❤

  • @-CSE-BurhaanWani
    @-CSE-BurhaanWani День тому +4

    Great content❤.
    I would to see videos on OOPS in javascript and a small project using OOPS

  • @AjitKumar-jr7jo
    @AjitKumar-jr7jo День тому

    thank you piyush.

  • @dhyeyparekh4994
    @dhyeyparekh4994 День тому

    Best content I have ever seen on UA-cam. Learned many many more things. Thank You and please continue making this type of videos

  • @sciencequotesfacts5543
    @sciencequotesfacts5543 День тому +2

    Sir Please tell me , whether the callback functions run inside the global execution context or its i executed after all the synchronous code is excuted and global execution is poped out from the stack .
    if cb fn not executed inside GEC then how they access the values from the scripts.

  • @mayankjoshi2077
    @mayankjoshi2077 9 годин тому

    Thank you for this wonderful videos

  • @paltan_team
    @paltan_team День тому

    Bhaiya Mera next month interview hai ap please playlist complete kr denge kya?
    apka smjhaya hua mind se niklta hi nahi
    You are my bestest teacher/bro/friend

  • @mdashifreza1296
    @mdashifreza1296 День тому

    Hii
    You are great explainer of tech now evolving around developers.

  • @vishalkumarchoudhary8497
    @vishalkumarchoudhary8497 20 годин тому

    Best explanation

  • @RaoAnkitYadav-cv5sg
    @RaoAnkitYadav-cv5sg 16 годин тому

    An amazing explanation can you make this type of series for Mern stack also everyone is waiting for that

  • @pratikanand143
    @pratikanand143 День тому

    Very nice video ❤
    Please make some video on typescript also.

  • @sunilgope1848
    @sunilgope1848 День тому

    Thank you sir ❤

  • @atharvsankpal
    @atharvsankpal День тому

    Understood Everything, Nice Explanation, Looking forward for next videos!!!

  • @shubhtalk7073
    @shubhtalk7073 День тому

    Ossam explanation piyush bhaiya 😊😊

  • @shubhtalk7073
    @shubhtalk7073 День тому

    Exited for next video ❤

  • @tanushreegharami227
    @tanushreegharami227 День тому

    Thank you sir

  • @HafizMAnam
    @HafizMAnam День тому +1

    A Wonder Full Content Bro
    Bro Need Series on React

  • @its_Amit_00
    @its_Amit_00 День тому

    I recently started backend in javascript, please help me how can i practice it more

  • @sachinkhatri1077
    @sachinkhatri1077 День тому

    Can someone clarify my doubt? At 7:41, he said that after executing all the code, everything will be removed from the call stack, including the global execution context. My question is: when the event loop pushes the setTimeout function to the call stack, does it create a new global execution context or a local execution context? Or does the global execution context remain in memory until the entire JavaScript code has completed execution?

    • @shahwaizkarim-h9z
      @shahwaizkarim-h9z День тому +1

      It does not pushes the setTimeout function entirely into call stack It pushes the callback function(not setTimeout bro) provided to setTimeout to Macro-task queue and then pushes to call stack. Also global execution context doesn't remains in the call stack, it 's kicked out before pushing the callback but the variables are still stored in the memory!

    • @sachinkhatri1077
      @sachinkhatri1077 День тому

      @shahwaizkarim-h9z thats my mistake i know that only function pushes in the stack but question is still same how without global execution context the function run on stack ? I think to run any code there should be an execution context.

  • @dharmrajhembram6445
    @dharmrajhembram6445 День тому

    Make a playlist on javascript and node js interview

  • @shubhtalk7073
    @shubhtalk7073 День тому

    You are best

  • @moviesasylum8531
    @moviesasylum8531 22 години тому

    Bro i have completed your js playlist,
    but completing and checking more things, i found that some topics are missing like object

  • @RajanYadav-fz6iw
    @RajanYadav-fz6iw День тому

    fetch metho also comes into micro task queue

  • @japtavyasingh7334
    @japtavyasingh7334 16 годин тому

    great

  • @devisinghlodhi9757
    @devisinghlodhi9757 День тому

    🔥🔥🔥

  • @azharalibhutto1209
    @azharalibhutto1209 День тому

    Please please please continue rust series'

  • @adityakiran5236
    @adityakiran5236 День тому

  • @AzharAli-n5c
    @AzharAli-n5c День тому

    please continue the rust series

  • @crush_ka_bhai
    @crush_ka_bhai День тому

    🏅 प्रथम

  • @vaishnavshegale822
    @vaishnavshegale822 День тому

    💛

  • @sabbirhossan3499
    @sabbirhossan3499 11 годин тому

    1:39 light mode activated ⚠️
    Stay safe.

  • @pixelgoat_
    @pixelgoat_ 21 годину тому

    English subtitles???

  • @akshay7018
    @akshay7018 День тому

    Light Mode🫣

  • @RishabhRawat-v6t
    @RishabhRawat-v6t День тому

    good going , I am a boy still I feel U are cute 😆

  • @shri_x1
    @shri_x1 День тому

    your explaination are super good, i would be nice if u do all videos in english

  • @MusaShaik1994
    @MusaShaik1994 13 годин тому

    Script:
    console.log("Hello World");
    setTimeout(() => {
    console.log("Hello World after 0 seconds");
    }, 0);

    setTimeout(() => {
    console.log("Hello World after 2 seconds");
    }, 2000);

    setTimeout(() => {
    console.log("Hello World after 0 seconds 3th time");
    }, 0);



    console.log("bye bye");
    Answer:
    Hello World
    script.js:17 bye bye
    script.js:4 Hello World after 0 seconds
    script.js:12 Hello World after 0 seconds 3th time
    script.js:8 Hello World after 2 seconds