HARD JavaScript Challenges | Do You REALLY Know JS?

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

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

  • @woodylucas
    @woodylucas Год назад +6

    0:40 Everything you said is correct; I just wanted to show how we can implement this approach. We can bind the function by using bind(). Since we want to reuse the function later and have a reference to it, we can use bind() as follows: const getName = obj.getName.bind(obj). Then, line 8 will work correctly.

  • @bikidas5473
    @bikidas5473 Год назад +2

    0:40 golden rule to remeber with this is where it was called from no mattter what the trajectory was, the call site matters in almost nearly all of the cases since in getName we are just storing the reference of the method it was actually called by getName which is defined in the global scope and thus undefined

  • @7days280
    @7days280 Год назад +2

    I got all correct except the promise one

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

    Love it, bring more of this.
    I was able to do most of them

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

    Very usefull. Thanks for your great content, Conner!

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

      Only the last one with the Promise was confusing for me. The rest is quite simple. Thanks!

  • @ZeZeko
    @ZeZeko 6 месяцев назад

    4:22 throw in promises into the mix for a good measure

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

    Thank you! Very interesting ❤

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

    Thank you so much for useful information!!!!!!

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

    For first challenge if you run this code in browser it will give you empty string and if you run that in codepen it will give you codepen and if you run that on in stackblitz it will throw error

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

    Damn, i definitely learnt something new today. I got hung up on the object and promise ones.

  • @Tony.Nguyen137
    @Tony.Nguyen137 Год назад

    My favourite JS youtuber, I always learn something from you vids.

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

    I didn’t know JavaScript was this complicated until I see your contents. They’re really helpful! Thank you. :)

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

      Tu samjha.... Nai tu nai samjha

    • @harryzhu
      @harryzhu 6 месяцев назад

      illl tell u why - its bc u skipped to typescript just like every web developer who want to be hip lol

    • @typescriptuser
      @typescriptuser 6 месяцев назад

      @@harryzhuno i didn’t

  • @anup-kaushal
    @anup-kaushal Год назад

    I’m learning JS and I completed the first four challenges without any trouble. The next challenge is about array methods, which I’m not yet familiar with, so I’ll learn about them before proceeding with this video. I’ll come back to this video later. I really appreciate you for making this video because it makes learning much easier. I’ll subscribe for more great content like this.

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

      Glad you enjoyed the video so far!
      Also fwiw, there is no order to this video. It's also not meant to be some magical all-encompassing test, it just intentionally touches on some points that I find a lot of developers never learn about.

    • @anup-kaushal
      @anup-kaushal Год назад

      @@ConnerArdman I see, but still it's helpful for me because I'm newbie to programming and coding stuff, I'm one month old in JS 😂

    • @llegenda-r3c
      @llegenda-r3c Год назад

      Bro where you are learning JavaScript pls reply

    • @anup-kaushal
      @anup-kaushal Год назад +1

      @@llegenda-r3c OMG! My comment got deleted for the third time.

  • @abdulrafaykhan5252
    @abdulrafaykhan5252 25 дней назад

    i have learned comma operator, invalid object property name and duplicating variables, thanks

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

    I think code challenges or more interview prep for js and react for the 2023 market would be great, in terms of what to expect now. Great content.

    • @ConnerArdman
      @ConnerArdman  Год назад +2

      Glad you enjoyed it! To be clear, I wouldn’t expect these types of problems to be asked in many interviews. They’re more of just interesting problems that can help test your knowledge of different concepts, not interview problems. I might make more interview specific content in the future though (and more of these challenges) 🤝

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

      @@ConnerArdmanHi Conner, so what question can be asked in an interview

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

      They can ask whatever they want lol. But most commonly for frontend you'll get a mix of traditional algorithm questions and some JS specific questions. Depending on the role/company, these could be pure JavaScript questions, or they could require you to interact with the DOM or even use a library/framework like React.
      Shameless plug - here's 50 frontend coding interview questions we created on FrontendExpert. Particularly the JavaScript and Dom Manipulation questions are probably the most realistic: www.algoexpert.io/frontend/coding-questions

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

    Love your video. they're straight to the point. Keep doing more videos like this..

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

    I think it is more confusing rather than hard.
    My answers before I see the actual output.
    2:33 I think this is called closure.
    Out
    2
    1
    3:32
    Out
    [1, 2, one, two, 4, 5]
    4:24 even though it is 0 sec.
    Out
    1
    3
    2
    5:41 ok, I haven't seen a comma operator inside a parentheses before. That is not a function. So .idk.
    6:24 This is not how you check for deep equality in JS.
    Out
    False
    False
    7:26 This can work, but this is not the syntax.
    Out
    Error?
    8:14 Hmm, not sure, but
    Out
    5
    10
    20
    The question now is, do you really care about what I or what someone else did?

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

    the only one I didn't know was the one that looked like a tuple

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

    Got only the last one incorrect, i completely forgot the last one was gonna log a pending promise. Really fun questions tho.
    Had no idea what variable= (1,2,3) is but instinctively thought its gonna resolve to the last value

  • @oualidel-feraoui1318
    @oualidel-feraoui1318 Год назад

    Yes i want to see more of these. You're a great content creator

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

    Actually learning from you alot dude you truly JavaScript Sensi 🧑‍🏫🧑‍🏫

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

    Man , i got JS knowledge in these 10 mins more than my whole 4 years of college 🔥🔥

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

    hey conner what sort of interview question you got for facebook was it purely algorithm based or js based or ? frontend concepts

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

      I was an intern convert, so really my true interview was the internship. That said, my intern interviews were standard algorithm problems (I didn’t go through any frontend specific track, if there even is one for interns).

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

    Thank you!

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

    6:56 seem that the most confusing thing in js pass by value and pass by reference

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

    damn, best content ever. love it, upload more pls

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

    I actually got most of them right
    Guess im getting strong in js😊

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

    I will give myself a B. I got a few of them, but I also messed up a few. Fun video!

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

      Nice! Glad you found the video fun 😃

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

    Amazing video, please make more video like this

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

    I answered all of them correctly 😂maybe I didn't knew I know JS that much

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

    Great content 👍

  • @llegenda-r3c
    @llegenda-r3c Год назад

    How to master JavaScript make roadmap on that. Pls

  • @harryzhu
    @harryzhu 6 месяцев назад

    I got 8/10

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

    😮

  • @nearest-river
    @nearest-river Год назад +1

    it was easy enough..xd

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

    Imagine someone coming from static language and see this JS crap

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

    i remember all of those questions from my first js interviews 🥲