Most Asked JavaScript Interview Questions | setTimeout, Promises & Event Loop | JS Interview Series

Поделиться
HTML-код
  • Опубликовано: 25 окт 2024

Комментарии • 30

  • @shivajivishnoi9721
    @shivajivishnoi9721 Год назад +1

    Promises are handled in microtask queue, and event loop prioritizes microtask over call back queue, thats why promise reaches the call stacj first.

  • @YogeshSatishAjilamogaru
    @YogeshSatishAjilamogaru 5 месяцев назад

    ekdam mast explanation

  • @ambupadamuduli3794
    @ambupadamuduli3794 2 года назад

    Explanation through that microstack and macrostack queue video was crystal clear.

  • @ParveshMishra-o4j
    @ParveshMishra-o4j 11 месяцев назад

    superb thanx for giving best example

  • @laxmibhanavase3078
    @laxmibhanavase3078 Год назад

    Nice explanation 👌

  • @haniahani5351
    @haniahani5351 11 месяцев назад

    I struggled with this concept always Thank you so much for this video. Now I got it.
    I subscribed liked ❤

  • @guptalove2437
    @guptalove2437 3 месяца назад

    what a Explanation bro

  • @prathameshpawar985
    @prathameshpawar985 Год назад

    Brotheer simply wonderful finally my conecept is clear , just one request please share that gif , It was great 😂😂❤

  • @PriyankaGupta-og4ro
    @PriyankaGupta-og4ro Год назад

    I did loooked on several javascript videos but this video explain the indepth knowledge on a call stack. So it's a helpful and newest topic for me. Thank you, Gaurav Sir for giving a dedicated and practical solution on it.

  • @triptivyas2521
    @triptivyas2521 Год назад

    Best explanation 👍🏻

  • @pshycocoder
    @pshycocoder Год назад

    Wow mene bilkul sahi guess kia tha..😃

  • @rahijawre5617
    @rahijawre5617 7 месяцев назад

    Good content

  • @Vijay_Patil04
    @Vijay_Patil04 Год назад

    Such a brilliant explanation 👌🏻

  • @girishpandey9976
    @girishpandey9976 2 года назад +2

    hi sir this is the output: 2,5,3,1,4

  • @neerajsharma4808
    @neerajsharma4808 Год назад

    osm video yr all clear

  • @siddharthpandey8577
    @siddharthpandey8577 Год назад

    2, 1, 3, 5,4

  • @prinsjoshi1269
    @prinsjoshi1269 Год назад

    Best experience 😊thank you

  • @kashmirtechtv2948
    @kashmirtechtv2948 2 месяца назад

    What if promise takes 15 seconds, will the setTimeout wait for that promise robe competed first???

  • @suchitteli64
    @suchitteli64 11 месяцев назад

    How to explain event loop in JavaScript for interview

  • @SuhaniNegi-g6j
    @SuhaniNegi-g6j Год назад

    baaki sab i get it but sir pehle console.log kyu print huwa

  • @RahulGupta-tp9pe
    @RahulGupta-tp9pe 2 года назад

    Thank sir 👍😊 this video

  • @manishkumar-bw5iv
    @manishkumar-bw5iv 2 года назад

    Thank you so much sir

  • @irkfaisal
    @irkfaisal 2 года назад

    Kindly share the the link of call stack web API process

  • @rehanhaq3564
    @rehanhaq3564 2 года назад

    thanks

  • @Mr_Hapsi
    @Mr_Hapsi 2 года назад

    Mja aa gya sir

  • @NikhilKumarMahto-qy9gp
    @NikhilKumarMahto-qy9gp 8 месяцев назад

    👌👌

  • @RahulGupta-tp9pe
    @RahulGupta-tp9pe 2 года назад

    Sir ak video call stack ans exucation ke upper bnao pls

  • @mbmshikha
    @mbmshikha 2 года назад

    Please explain this
    console.log("1");
    setTimeout(function()
    {
    console.log("2");
    },0);
    Promise.resolve().then(console.log("3"));
    console.log("4");
    When I tried to run this,(promise without any function ) .. I got the output like this 1342
    But same If I am trying with function (promise with function )
    console.log("1");
    setTimeout(function()
    {
    console.log("2");
    },0);
    Promise.resolve().then(function()
    {
    console.log("3")
    });
    console.log("4");
    I got the output--- 1432
    IS it because of IIFE ?

  • @Keep_quiet_1
    @Keep_quiet_1 Год назад

    So hard to understand what you say, its impossible, please work on your pronanciation G