ex-FAANG Developer vs "Hardest" JavaScript Quiz

แชร์
ฝัง
  • เผยแพร่เมื่อ 7 มิ.ย. 2024
  • How well do I know JavaScript? Let's try to find out with this seemingly impossibly hard JS quiz!
    JavaScript Is Weird Quiz: jsisweird.com/
    Prepping for your frontend interviews? Use code "conner" for a discount on my product FrontendExpert:
    www.frontendexpert.io/conner
    🎬 TikTok: / connerardman
    💼 LinkedIn: / connerardman
    💻 Video/Coding Gear (affiliate): www.amazon.com/shop/connerardman
    Business/brands 👉 youtube@connerardman.com
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 58

  • @SebastianMares
    @SebastianMares 14 วันที่ผ่านมา +104

    Yeah, “we” did pretty well. I am proud of “us”.

    • @_RG99_
      @_RG99_ 11 วันที่ผ่านมา +2

      I carried y'all did nothing fr fr

  • @GregHogg
    @GregHogg 14 วันที่ผ่านมา +74

    Answer to Question 8 is wild

    • @NoName-1337
      @NoName-1337 14 วันที่ผ่านมา +5

      parseInt takes only strings, so it parses the parameter (number) to a string in the first place and then the actual function can parse the string to an int.

    • @hundvd_7
      @hundvd_7 13 วันที่ผ่านมา +1

      I really don't think it is.
      You pass a float to a parseInt function. Of course shenanigans are gonna happen

    • @ittixen
      @ittixen 12 วันที่ผ่านมา

      Passing the wrong type of value as an argument may be a mistake but so is inexplicably converting numbers to strings in a different format all of a sudden after an arbitrary threshold.

    • @TheRealMangoDev
      @TheRealMangoDev 10 วันที่ผ่านมา

      8 is ez

    • @TheRealMangoDev
      @TheRealMangoDev 10 วันที่ผ่านมา

      obviusly 5

  • @michaldivismusic
    @michaldivismusic 14 วันที่ผ่านมา +41

    "JS is weird"... What an understatement 😂

    • @TheArchCoder
      @TheArchCoder 13 วันที่ผ่านมา +1

      Are you gonna stop being a react script kitty or what?

    • @fireninja8250
      @fireninja8250 13 วันที่ผ่านมา +1

      create websites in assembly for less confusing code

    • @thekwoka4707
      @thekwoka4707 12 วันที่ผ่านมา

      Some of it isn't even js being weird.

    • @TheArchCoder
      @TheArchCoder 12 วันที่ผ่านมา

      @@fireninja8250 fr lmhao

    • @rafaeldeleon3386
      @rafaeldeleon3386 11 วันที่ผ่านมา +1

      More like "WTF JS"

  • @swapnil_tech
    @swapnil_tech 14 วันที่ผ่านมา +22

    23/25 is madd impressive !

  • @rafaeldeleon3386
    @rafaeldeleon3386 11 วันที่ผ่านมา +9

    If I saw someone write any of this code in production, I would request they be fired... immediately.

  • @OmarAtri
    @OmarAtri 14 วันที่ผ่านมา +8

    I don't think the ECMAScript team would do in this quiz better than you did haha I'm sure you know JS better than they do haha
    You're the JS master ✌
    JavaScript quizzes are really fun, I'd appreciate more videos like this

    • @ConnerArdman
      @ConnerArdman  14 วันที่ผ่านมา +2

      Haha I’m sure some of them would do better… probably 😂

  • @boomba118
    @boomba118 13 วันที่ผ่านมา +8

    love the "I give up" option in the last question 🤣 even the person who made this quiz knew at that point, most ppl would not be bothered anymore, js is weird 😅

  • @jagicyooo2007
    @jagicyooo2007 13 วันที่ผ่านมา +4

    we have a JS expert in the house!

  • @VaurionX
    @VaurionX 13 วันที่ผ่านมา +3

    Very impressive. I was shocked at how many you got right.

    • @ConnerArdman
      @ConnerArdman  13 วันที่ผ่านมา +2

      As was I 😂

  • @CottidaeSEA
    @CottidaeSEA 13 วันที่ผ่านมา +2

    I knew the answers to the ones you got wrong, but I would've struggled with the type conversion arithmetic.

  • @srdjagunjic
    @srdjagunjic 14 วันที่ผ่านมา +1

    Amazing results!

  • @webapplicationsengineer
    @webapplicationsengineer 14 วันที่ผ่านมา +5

    I mean, its JavaScript being JavaScript 😂❤

  • @NoName-1337
    @NoName-1337 14 วันที่ผ่านมา

    Great quiz. I did some mistakes and learned a lot. Thank you.

  • @Brad_Script
    @Brad_Script 12 วันที่ผ่านมา +2

    do not use parseInt and parseFloat with numbers. They take string as argument. Getting weird results with numbers is expected. If you want to convert a float to an integer, use Math.round, Math.trunc, Math.ceil or Math.floor

  • @QwDragon
    @QwDragon 11 วันที่ผ่านมา

    I got 24/25 - forgot about scientific notation for parseInt. Actually even if i think about it, I don't know how many zeroes needed to get it.

  • @InfernalLegion84
    @InfernalLegion84 8 วันที่ผ่านมา

    My favorite is that type of NaN is number :D But it makes perfect sense if you think about it

  • @strategistaow3520
    @strategistaow3520 14 วันที่ผ่านมา

    Where did you learned that js converters and so

    • @ConnerArdman
      @ConnerArdman  14 วันที่ผ่านมา +2

      I had to read through all the docs when I was making a course a while back. Otherwise I wouldn’t know them haha

  • @HippityhoppityGnW
    @HippityhoppityGnW 10 วันที่ผ่านมา

    I took this quiz while looking for the other one you did. I got question 8 without knowing what parseInt even did… needless to say, I did not do well on that quiz. When I saw the explanation, I stared at my monitor for like 1 minute.

  • @nomadshiba
    @nomadshiba 12 วันที่ผ่านมา +1

    2:42 bro parseint takes a string

  • @StandaBlabol
    @StandaBlabol 12 วันที่ผ่านมา

    I am Java developer forced to use JS for some minor stuff.
    And my impression is that JS design is based on fentanyl.
    But frankly TS is acceptable.

  • @amir650
    @amir650 11 วันที่ผ่านมา

    why is any string that is *not* empty 'considered truthy', but an empty list was shown to also be truthy.

    • @velvetsycap6351
      @velvetsycap6351 11 วันที่ผ่านมา +1

      Because an array is an object. The memory address holds an object which is something, which is truthy. An empty string is technically an array aswell but it’s more primitive than an array, so an empty string is more falsely

  • @williamseipp9691
    @williamseipp9691 11 วันที่ผ่านมา

    godamn this is wacky. I can't imagine debugging that. I haven't done js yet but am I going to be explicit as hell.

  • @cIappo896
    @cIappo896 14 วันที่ผ่านมา +1

    I got 17, somehow. Cool stuff

  • @Voidstroyer
    @Voidstroyer 12 วันที่ผ่านมา

    I did the test before watching the video. Got 11/25. I will now commit coding seppuku!!!

  • @espertalhao041
    @espertalhao041 12 วันที่ผ่านมา

    There's a test case that the website is missing: false == [].
    There is !![], but that doesn't cover all the weirdness.

    • @moveonvillain1080
      @moveonvillain1080 12 วันที่ผ่านมา

      This is false right? Empty array is truthy

    • @QwDragon
      @QwDragon 11 วันที่ผ่านมา +1

      @@moveonvillain1080 false == [] is true. [] is converted to empty string that is converted to zero. False is zero too. So 0 == 0 which is true.

    • @espertalhao041
      @espertalhao041 11 วันที่ผ่านมา

      @@moveonvillain1080 Try it for yourself, on the console.
      Both will be true, which means, an empty array is truthy and falsy, depending on how you test it.

  • @amixengineer
    @amixengineer 12 วันที่ผ่านมา +1

    It was very informative thanks Conner 🙌

  • @MagnumCarta
    @MagnumCarta 13 วันที่ผ่านมา

    I have no idea how I'd do but I would certainly get less than 23.

  • @timchen8512
    @timchen8512 14 วันที่ผ่านมา

    Amazing results 😂
    Js is really a joke.
    😂😂😂

  • @lenny4539
    @lenny4539 12 วันที่ผ่านมา +2

    My brain hurts.

  • @JawaCodePro
    @JawaCodePro 14 วันที่ผ่านมา

    Hello

  • @ryiv1848
    @ryiv1848 7 วันที่ผ่านมา +1

    See? Even smart people make mistakes, so don't be too hard on yourself😊💙

  • @Endrit719
    @Endrit719 2 วันที่ผ่านมา

    I got 0/25

  • @ghattassalloum9908
    @ghattassalloum9908 13 วันที่ผ่านมา

    man that's hard I got 14

  • @Macpherson1st1
    @Macpherson1st1 12 วันที่ผ่านมา

    JavaScript is weird. Super weird.

  • @listener8228
    @listener8228 12 วันที่ผ่านมา +1

    Bro who invented JavaScript 💀💀

  • @pauloeduardo1461
    @pauloeduardo1461 12 วันที่ผ่านมา

    Prewatched 😅

  • @Presenter2
    @Presenter2 8 วันที่ผ่านมา

    I think I'll never will try JS after this video...