Javascript Interview Questions

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

КОМЕНТАРІ • 223

  • @artyCrafty4564
    @artyCrafty4564 10 місяців тому +19

    timestamps :
    first question is from start
    @9:55 2nd Q
    @14:34 3rd Q
    @18:25 4th Q
    @24:25 5th Q
    @27:36 6th Q
    @32:19 7th Q
    @35:12 8th Q
    @38:24 9th Q

  • @furqanQadri7
    @furqanQadri7 Рік тому +58

    Piyush is one of the best teachers! No BS about courses and giving false dreams and hope. Just to-the-point coding. Keep it up buddy

    • @huntersgaming447
      @huntersgaming447 Рік тому +1

      Wait why I quickly understood the abbreviation "BS" 🤔

  • @gauravkumar-he6lv
    @gauravkumar-he6lv 9 місяців тому +6

    great interview questions for JS , basic and very tricky questions

  • @shahhussain7192
    @shahhussain7192 4 місяці тому +2

    27:00 I think it is because of closures. When we use let keyword it creates scope of block i.e when the loop will be over than the variable created by let keyword "i" will be deleted but in between the loops block we have used an async function setTimeout in which a call back function is passed. and in the callback function we used a variable "i" of its parent scope in console log. so now it creates a closure in each iteration and saves its values than after it goes to web API environment one by one. so when all the execution is done within the loop than the async function is pulled back to the call stack through event loop. since each async function had captured the value of "i" in closures so it reflect in console log after execution.
    while in case of var keyword..... it is a global scope variable so it dose not delete though the loop has ended. So when async functions are puled back one by one to call stack via event loop they already had different closers value which were captured during iteration in variable "i" respectively but they get updated (re-assigned) to the last one because the value of "i" available in global scope. That is why it prints the same value i.e 10 ten times .

  • @himanshupatil8051
    @himanshupatil8051 10 місяців тому +6

    This almost covers all question which I got stuck in interviews when I was a beginner.

    • @DeepakKumarRout-h6t
      @DeepakKumarRout-h6t Місяць тому

      Bhai Can You Suggest Me,How To Get A Frontend Developer Job As A Fresher From Your Experience

  • @as_if
    @as_if 9 місяців тому

    20:00
    24:28
    27:39 : 30:00 arrow fn refers to global context or window (for browser) for 'this'
    32:30
    35:15

  • @Aditya_khedekar
    @Aditya_khedekar Рік тому +50

    tutorial of kubernetes for node js and helm

  • @mohammadgauhar6982
    @mohammadgauhar6982 Рік тому +18

    Please continue this series Interview questions like React, Node, sys design, etc...

  • @shruh493
    @shruh493 Рік тому

    Bhai aap sahi ja rahe ho, kuch log difficult questions puchake demotivate kar dete hai UA-cam pe.

  • @gauravparihar6962
    @gauravparihar6962 9 місяців тому +1

    done and great work by @Piyush Garg.

  • @ajitawadhiya6967
    @ajitawadhiya6967 Місяць тому

    Thanks for such a wonderful video Piyush.

  • @shahzaibkhan5423
    @shahzaibkhan5423 Місяць тому

    Sir you are just awesome. Thank you very much for your time and knowledge.

  • @hiteshpakhan7783
    @hiteshpakhan7783 4 місяці тому +1

    every one should watch this video after learning javascript

  • @sonotbapla9232
    @sonotbapla9232 2 місяці тому

    Best teacher in coading industries......👍

  • @rdrenio
    @rdrenio 9 місяців тому

    so many thing learned today thanks for this amazing session.

  • @pkyadav6230
    @pkyadav6230 Рік тому +13

    Hey piyush!
    Please share us the resources you use to learn.... otherwise we will fall in tutorial hell...
    As usual your videos are mind-blowing...

    • @amanrazz2091
      @amanrazz2091 Рік тому

      +1. I want to know the collective resources to learn indepth abstract concepts like these.

  • @atanukundu_10
    @atanukundu_10 4 місяці тому

    halfway through the video, learned so much

  • @Arvind__-wu6zv
    @Arvind__-wu6zv 5 місяців тому

    31:00 Two doubts
    First one is : first line initializes fullname, so does this fullname doesnt become a part of global object??
    Second one is : in case of iife does "this" doesn't refer to the current context?

    • @moneylogyy
      @moneylogyy 5 місяців тому

      same doubts i hve

    • @Arvind__-wu6zv
      @Arvind__-wu6zv 5 місяців тому +1

      @@moneylogyy it's because declaring something with var doesn't make it a part of global object. It becomes more like a part of the module

    • @moneylogyy
      @moneylogyy 5 місяців тому

      @@Arvind__-wu6zv thanks bro

  • @devstruggles
    @devstruggles 20 днів тому

    Great job Piyush, The questions are good but the explanations are gold 🔥

  • @MessiLeo2312
    @MessiLeo2312 Рік тому +2

    My score 9/10🎉 can you please continue this series it's very interesting and helping for me

  • @mdsahilraj2306
    @mdsahilraj2306 5 місяців тому +1

    Great Explanation of these important concepts of javascript👏

  • @poojamaheshwari748
    @poojamaheshwari748 11 місяців тому +2

    great explanation and u have given crystal clear every concept behind this question, please come up with more videos on javascript and react also

  • @sumitsinha995
    @sumitsinha995 5 місяців тому

    call aur bind function kya badiya explain kiya bhaiya!aur further series continue kariye bhaiya!

  • @vikaas.sharma
    @vikaas.sharma 2 місяці тому

    Thanks bhaiya learnt alot 😊

  • @darshanpandya1087
    @darshanpandya1087 7 місяців тому

    Your way of explanations has helped me in so many projects , you are my go to guy whenever i want to learn something new ... Thank You Piyush Bhai

  • @sahilpatle6436
    @sahilpatle6436 8 місяців тому

    Definitely i am gonna like and share this amazing vdo .

  • @James-fu3sh
    @James-fu3sh Рік тому

    I like your voice and the way of speaking {especially mixing Urdu and English [i am the fan of your sentence 'let us say that'] }

  • @LearnerAbhi21
    @LearnerAbhi21 5 місяців тому

    Thank yo sir, it was my first video, and you killed it great !!!

  • @VishalYadav-gk1kg
    @VishalYadav-gk1kg 7 місяців тому +1

    Very nice explanation sir, Thank you!

  • @rimjhimgupta1477
    @rimjhimgupta1477 Рік тому

    Thank you sir, is type ke dusre question bhi btaiye interview ke liye. Your explanation types is very good

  • @abhinavparashar1934
    @abhinavparashar1934 18 днів тому

    need a part 2 please it is very helpful so much helpful

  • @shubhammali2109
    @shubhammali2109 10 місяців тому

    This is a goldmine, keep spreading this invaluable gold

  • @eyerahulk
    @eyerahulk 8 місяців тому

    bhai aur chahiye aise videos. thanks for this one.

  • @ChandanGupta-fl8it
    @ChandanGupta-fl8it Рік тому

    very informative video. I am switching my career to web development form non it background. please keep making these kind of videos . really helpful to understand the concepts. hamare institutes mein bhi asie concepts clear nahi karate hain.

    • @wanderwithprateek
      @wanderwithprateek Рік тому

      hi there! how long have u been learning webdev... coz im also from non it bg and learning frontend for now!

  • @hemensanmahilange4127
    @hemensanmahilange4127 8 місяців тому

    Thank you Piyush bhaiya for this amazing series.😊

  • @ankurvlogger6584
    @ankurvlogger6584 9 місяців тому

    Great explanation. Really nice the way you explain all questions. 🎉🎉🎉

  • @artsofpixel
    @artsofpixel Рік тому

    Best video i have watched so far bro to get the concept of hoisting and memory and Cody thing
    Thank you

  • @SantoshSingh-mo8mr
    @SantoshSingh-mo8mr 11 місяців тому

    Bro your knowledge is next level🎉🎉

  • @reviewbyrahul2523
    @reviewbyrahul2523 4 місяці тому

    the core learning for me was js execution environment...confusion clear

  • @arushraj3807
    @arushraj3807 Рік тому

    Your way of teaching is superb, Please make intermediate and high level interview questions and lastly thanks for this amazing video.

  • @Codeuix
    @Codeuix Рік тому

    This is my first comment so far please make advanced javascript interviews questions. You are awesome teachers so far I watched. ❤❤

  • @msrajawat298
    @msrajawat298 Рік тому

    After watching this video, I feel that after the more than 4+ year working on JavaScript, it really there are lots of missing concept that blow my mind.

  • @salonisonawane4576
    @salonisonawane4576 4 місяці тому

    thank you ,u made it very easy to understand

  • @VibewithSauravVerma
    @VibewithSauravVerma Місяць тому

    Excellent Teaching! :)

  • @ardhrubobd
    @ardhrubobd Рік тому

    Need more interview question like this. Thank you Piyush.

  • @Aakash_Kashyap01
    @Aakash_Kashyap01 Місяць тому

    it was fruitful video!! but U can go in more deeper to make understand ...

  • @prathamchoudhary6343
    @prathamchoudhary6343 Рік тому

    What a video!! Totally worth to watch
    Need more stuff like this

  • @abhinavsingh581
    @abhinavsingh581 Рік тому

    so many things to learn
    Thank you @piyush

  • @InDiAnAjOnEs0002
    @InDiAnAjOnEs0002 11 місяців тому

    Maja aa gaya dost...aur video banao...banao banao..

  • @yunik_developer
    @yunik_developer Рік тому

    I have a doubt 13:21 jab myfun(second) bhi to intialize hona chahiye tha but output first kese aaya

  • @TheSachinAlam
    @TheSachinAlam 4 місяці тому +1

    Nice set of questions.

  • @Abhishek-fo3fc
    @Abhishek-fo3fc Рік тому +2

    Nice video, Piyush bhai! Please continue the series on interview questions related to React, Node, system design, etc.❤

  • @chandanindalkar
    @chandanindalkar 11 місяців тому

    Amazing video as always, please do continue the JavaScript interview questions series.

  • @ankitpatel5718
    @ankitpatel5718 Рік тому +1

    Loved it. Need more like this. Piyush Bhai start a interview js series. Me and my friends will love it.

  • @mdsonualam8408
    @mdsonualam8408 Рік тому

    thankx piyush more videos of similar kind needed.

  • @yogesh_prakhar
    @yogesh_prakhar 11 місяців тому

    this video is awesome for revising javascript concept , waiting for another video with hard questions...

  • @utkarshpatidar167
    @utkarshpatidar167 Рік тому

    What an explanation 👏
    Thanks a lot sir..❤

  • @Junior_developer-rm1kj
    @Junior_developer-rm1kj 10 місяців тому +2

    In the video at 30.04 sec when we calling getFullnameV2 as a arrow function and in arrow function this belongs to global object .But in global object we have fullname property so why it don't pick the fullname from global object (From Global Execution Context) ??

    • @9829486358
      @9829486358 10 місяців тому

      Yes in my system I get piyush in console...

  • @shamshad_hussain
    @shamshad_hussain Рік тому

    Webhook ke uper video banaiye. Basically demo me ye dikhaiye ki phonepe payment gateway ko kaise react and node.js me integrate kar sakte hai aur payment complete hone ke baad form data ya cart data ko mongodb me kaise save kar hai webhook ki help se. Payment gateway ke liye razorpay use mat ki jiye only phonepe payment gateway.

  • @vaibhavwadhavane874
    @vaibhavwadhavane874 Рік тому

    0:53 value of Age is undefined
    value of Age is 20

  • @SUJAL-FACT-YT
    @SUJAL-FACT-YT 3 місяці тому

    sir continue this series . we need more videos like it

  • @aryangarg6749
    @aryangarg6749 Рік тому +1

    Hi Piyush, this video is just awesome and the way you described the concept easily. Kindly do bring the video on intermediate and hard questions. Desperatley waiting for it. A Fun fact, you have become one of the most famous youtuber in software field. Haha!!

  • @mohdsahil226
    @mohdsahil226 19 днів тому

    Excellent!

  • @yogeshkumarverma2125
    @yogeshkumarverma2125 11 місяців тому

    Thank you it was very helpful.

  • @codekicks2171
    @codekicks2171 Рік тому

    Great questions, Learned a lot

  • @WebBlows
    @WebBlows 10 місяців тому

    How can you say this line ? Arrow function jo hota hai wo hamesha global object ko point krta hai?? 30:19 don't use word hamesha sir
    in your example its pointing to global, doesnt mean hamesha krega,
    arrow fn does not has its own this, and its points to it parent lexical scope where it presents in , in you case its present in global scope thats why its pointing to global object , and for browsers global object is Window object, thats why we get window,

    • @apurvajain7839
      @apurvajain7839 2 місяці тому

      If "this" in browser is pointing to window, then window has variable fullname right? So in browser the output of this line should be "Piyush Garg".
      Correct me if I am wrong?

  • @utkarshjain6755
    @utkarshjain6755 4 місяці тому

    Sir, u are a legend ❤

  • @Shrish-lo2fx
    @Shrish-lo2fx 11 місяців тому

    Excellent work, need intermediate and hard level 10 questions each please... #my_christmas_gift😂

  • @S4LTYT
    @S4LTYT Рік тому

    I love you bro. I am getting confidence from watching your videos. Please make a video on Design patterns with nodejs classes examples.

  • @ajithamin9196
    @ajithamin9196 9 місяців тому +1

    Please do for nodejs as well as backend in general

  • @mihirmamtani8133
    @mihirmamtani8133 4 місяці тому

    sir awsome questions can you made on react js

  • @arunyadav7467
    @arunyadav7467 Рік тому

    more of this type with great explanation

  • @bhaveshpadave
    @bhaveshpadave 7 місяців тому

    Thank you for your efforts!

  • @jaintrisisters3743
    @jaintrisisters3743 3 місяці тому

    great video piyush

  • @anikettripathi1160
    @anikettripathi1160 9 місяців тому

    🔥 Awesome. Thank you!

  • @rahulruke307
    @rahulruke307 Рік тому +3

    Please sir make video on kubernetes if possible !!

  • @fitsgroup185
    @fitsgroup185 11 місяців тому

    awesome explanation 😍😍

  • @mrdecode9341
    @mrdecode9341 Рік тому

    piyush vaiya love you and love your content very much . ❤❤❤❤❤❤❤❤
    please make a video on what to do and how to do if you stuck on development , stuck on error, if you haven't any senior developer and if anybody does n't help you, then how can we survive in a company as a fresher or 1-2 year exp ? because ye mere sath abhi ho raha he aur mera bht sare dost ke sath bhi hua he ye chiz aur wo sab 4-5 company switch kar chuke he alreday due to stucking problem , helpless and hope less , demotivate things like these...
    apke sath bhi hua hoga na ...app bhi to struggle kiye honge ne apka fresher time pe to please it's my kind request bataie 🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏

  • @abhishekpatel6582
    @abhishekpatel6582 Рік тому

    Thank you so much sir this was so helpful ❤❤

  • @AnuragYadav-hn2si
    @AnuragYadav-hn2si 8 місяців тому

    Nice work Piyush :)

  • @KnownTechnical
    @KnownTechnical Рік тому

    9th was the mind blowing.

  • @rohitahuja999
    @rohitahuja999 Рік тому

    Good video and best explanation

  • @Nationsacademy
    @Nationsacademy 11 місяців тому

    Appreciated sir please make a video on "HOW TO SECURE OUR FRONTED & BACKEND CODE IN WEB DEVELOPMENT"

  • @vishwajeetmanhas_5864
    @vishwajeetmanhas_5864 10 місяців тому +1

    Piyush ek nodejs ke upar bhi banao esi video

  • @maazshaikh5283
    @maazshaikh5283 Рік тому +1

    Please provide us interview questions for HTML and CSS also. It would be very helpful if you would include MCQs also.

  • @pranayraj8945
    @pranayraj8945 9 місяців тому

    Nice explanation ❤❤❤

  • @VISHNUKUMAR-eg1he
    @VISHNUKUMAR-eg1he Рік тому

    Nice explanation bro, ❤

  • @AdityaRajChauhan-os3yn
    @AdityaRajChauhan-os3yn Рік тому

    love your videos they are very informative :)

  • @gagansehra5344
    @gagansehra5344 11 місяців тому

    Hi Piyush
    'this' in arrow function donot refers to Global/Window object, it refers to the context where it is being called.

  • @patelronak153
    @patelronak153 Рік тому

    Nicely Explained🙌😍🚀

  • @chaitram4141
    @chaitram4141 Рік тому

    Very useful thank you😊🙏

  • @rakib_bhai74
    @rakib_bhai74 Рік тому

    Loved it bhaiya ❤❤

  • @sufiyanmogal1527
    @sufiyanmogal1527 2 місяці тому

    great explanation

  • @sahdevdomadiya8665
    @sahdevdomadiya8665 8 місяців тому

    very good bro please make more harder

  • @guyfromdoon
    @guyfromdoon 5 місяців тому +1

    hats off bro 😎

  • @aesthetic.sixteen
    @aesthetic.sixteen 11 місяців тому

    Loved this💯

  • @ssugam1
    @ssugam1 6 місяців тому

    Hi piyush,
    I have doubt at 31:53 why the IIFE is returning undefined .Pls explain if anyone else can i will appreciate.What's this keyword points to in IIFE

  • @gojosatoru988
    @gojosatoru988 Рік тому

    Awesome video brother...

  • @syncEdith
    @syncEdith Рік тому

    Shukriya Brother

  • @mayurbansal4051
    @mayurbansal4051 Рік тому

    38:14 how it is working with arrow function, didn’t get the closure logic