JavaScript Prototypes: The interview question that stumped me

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

КОМЕНТАРІ • 12

  • @luznoceda423
    @luznoceda423 6 годин тому

    Thanks for reminding me that when I thought I already knew JavaScript actually I don't 😭 Subscribed! Can you zoom in your code next time btw?

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

    Love this!! Keep it upppp

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

    Nicceee

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

    Thank you 🙌

    • @techgirlinstyle
      @techgirlinstyle  Місяць тому +1

      I hope it was helpful! Happy to review more interview questions if you’re interested

  • @ousmand742
    @ousmand742 Місяць тому +1

    Interviewer: What is a closure?
    Me: What my ex never have me.
    Interviewer: What is a promise?
    Me: The thing I can't keep.
    Interviewer: Umm..ok.. what is a callback?
    Me: What I never get after the first date?
    Interviewer: Ok.. you can't have this job.
    Me: Jeez.. Way to over... React.

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

    I would appreciate code to illustrate your metaphores rather than just talk.

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

      I am extending the prototype later in the video - and adding a new method for the Array prototype than later becomes accessible on the newly created array. This demonstrates the inheritance principle

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

      The video is interesting and the tipic is not very common, good idea.

  • @Eghizio
    @Eghizio Місяць тому +1

    Array.prototype.fistChild 💀Array.prototype.myFatMap 💀
    Please tell me you are doing this on purpose 😂
    Nice video, although a little bit long 👍

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

      Of course I am doing these in purpose :) these are actual technical screening questions you get asked (and I was actually asked) in 2024 in one of the top 20 paying companies (www.levels.fyi/leaderboard/Software-Engineer/Senior-Engineer/country/United-States/)