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 Місяць тому +110

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

    • @_RG99_
      @_RG99_ Місяць тому +2

      I carried y'all did nothing fr fr

  • @GregHogg
    @GregHogg Місяць тому +75

    Answer to Question 8 is wild

    • @NoName-1337
      @NoName-1337 Місяць тому +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 Місяць тому +1

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

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

      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 Місяць тому

      8 is ez

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

      obviusly 5

  • @michaldivismusic
    @michaldivismusic Місяць тому +42

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

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

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

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

      create websites in assembly for less confusing code

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

      Some of it isn't even js being weird.

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

      @@fireninja8250 fr lmhao

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

      More like "WTF JS"

  • @swapnil_tech
    @swapnil_tech Місяць тому +22

    23/25 is madd impressive !

  • @rafaeldeleon3386
    @rafaeldeleon3386 Місяць тому +10

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

  • @OmarAtri
    @OmarAtri Місяць тому +9

    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  Місяць тому +2

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

  • @boomba118
    @boomba118 Місяць тому +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 Місяць тому +4

    we have a JS expert in the house!

  • @webapplicationsengineer
    @webapplicationsengineer Місяць тому +5

    I mean, its JavaScript being JavaScript 😂❤

  • @VaurionX
    @VaurionX Місяць тому +3

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

  • @CottidaeSEA
    @CottidaeSEA Місяць тому +2

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

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

    Amazing results!

  • @NoName-1337
    @NoName-1337 Місяць тому

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

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

    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.

  • @Brad_Script
    @Brad_Script Місяць тому +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

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

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

  • @lenny4539
    @lenny4539 Місяць тому +2

    My brain hurts.

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

    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 Місяць тому +1

    2:42 bro parseint takes a string

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

    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.

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

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

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

    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 Місяць тому +1

    I got 17, somehow. Cool stuff

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

    It was very informative thanks Conner 🙌

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

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

    • @velvetsycap6351
      @velvetsycap6351 Місяць тому +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

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

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

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

      This is false right? Empty array is truthy

    • @QwDragon
      @QwDragon Місяць тому +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 Місяць тому

      @@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.

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

    Where did you learned that js converters and so

    • @ConnerArdman
      @ConnerArdman  Місяць тому +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

  • @VideoGames_Wizard
    @VideoGames_Wizard 7 днів тому

    Got like 20 is that good?

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

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

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

    Bro who invented JavaScript 💀💀

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

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

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

    JavaScript is weird. Super weird.

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

    man that's hard I got 14

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

    I got 0/25

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

    Prewatched 😅

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

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

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

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