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 - Наука та технологія
Yeah, “we” did pretty well. I am proud of “us”.
I carried y'all did nothing fr fr
Answer to Question 8 is wild
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.
I really don't think it is.
You pass a float to a parseInt function. Of course shenanigans are gonna happen
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.
8 is ez
obviusly 5
"JS is weird"... What an understatement 😂
Are you gonna stop being a react script kitty or what?
create websites in assembly for less confusing code
Some of it isn't even js being weird.
@@fireninja8250 fr lmhao
More like "WTF JS"
23/25 is madd impressive !
If I saw someone write any of this code in production, I would request they be fired... immediately.
HHahahaah
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
Haha I’m sure some of them would do better… probably 😂
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 😅
we have a JS expert in the house!
I mean, its JavaScript being JavaScript 😂❤
Very impressive. I was shocked at how many you got right.
As was I 😂
I knew the answers to the ones you got wrong, but I would've struggled with the type conversion arithmetic.
Amazing results!
Great quiz. I did some mistakes and learned a lot. Thank you.
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.
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
My favorite is that type of NaN is number :D But it makes perfect sense if you think about it
My brain hurts.
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.
2:42 bro parseint takes a string
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.
I did the test before watching the video. Got 11/25. I will now commit coding seppuku!!!
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.
I got 17, somehow. Cool stuff
It was very informative thanks Conner 🙌
why is any string that is *not* empty 'considered truthy', but an empty list was shown to also be truthy.
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
There's a test case that the website is missing: false == [].
There is !![], but that doesn't cover all the weirdness.
This is false right? Empty array is truthy
@@moveonvillain1080 false == [] is true. [] is converted to empty string that is converted to zero. False is zero too. So 0 == 0 which is true.
@@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.
Where did you learned that js converters and so
I had to read through all the docs when I was making a course a while back. Otherwise I wouldn’t know them haha
Got like 20 is that good?
I have no idea how I'd do but I would certainly get less than 23.
Bro who invented JavaScript 💀💀
Fr, it's aids
Amazing results 😂
Js is really a joke.
😂😂😂
JavaScript is weird. Super weird.
man that's hard I got 14
I got 0/25
Prewatched 😅
I think I'll never will try JS after this video...
See? Even smart people make mistakes, so don't be too hard on yourself😊💙