HARD JavaScript Challenges | Do You REALLY Know JS?

  Рет қаралды 7,441

Conner Ardman

Conner Ardman

Күн бұрын

Do you actually know the intricate details of JavaScript? Or do you just have enough surface knowledge to know the basics? See how many of this tough challenges you can solve!
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: www.amazon.com/shop/connerardman
➡️ Book A 1-on-1 With Me: 1-on-1.com/connerardman
Timestamps:
0:00 How Well Do You Know JavaScript?
0:19 This Madness
1:09 Arrays Can Do What?
2:00 Adding... Strings?
2:28 Duplicate Variables
3:31 Splicing Arrays
4:22 setTimeout Is Broken?
5:40 The Comma Operator
6:20 Equality Is Not Equal
7:25 Invalid Object Property Names?
8:12 Asynchronous Promise Chaining
9:54 Up Next
Business/brands 👉 youtube@connerardman.com

Пікірлер: 54
@woodylucas
@woodylucas 11 ай бұрын
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 11 ай бұрын
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
@DpakSharmaNoida
@DpakSharmaNoida 11 ай бұрын
Love it, bring more of this. I was able to do most of them
@7days280
@7days280 11 ай бұрын
I got all correct except the promise one
@tranquiltastes
@tranquiltastes 11 ай бұрын
Thank you! Very interesting ❤
@sudheervajrapu
@sudheervajrapu 11 ай бұрын
Love your video. they're straight to the point. Keep doing more videos like this..
@okeaniafree
@okeaniafree 9 ай бұрын
Thank you so much for useful information!!!!!!
@ZeZeko
@ZeZeko Ай бұрын
4:22 throw in promises into the mix for a good measure
@user-zb1fb2is5y
@user-zb1fb2is5y 9 ай бұрын
Very usefull. Thanks for your great content, Conner!
@user-zb1fb2is5y
@user-zb1fb2is5y 9 ай бұрын
Only the last one with the Promise was confusing for me. The rest is quite simple. Thanks!
@riacharda
@riacharda 3 ай бұрын
Damn, i definitely learnt something new today. I got hung up on the object and promise ones.
@irfanmohammad7269
@irfanmohammad7269 8 ай бұрын
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
@huseynfy
@huseynfy 11 ай бұрын
Thank you!
@soniablanche5672
@soniablanche5672 6 ай бұрын
the only one I didn't know was the one that looked like a tuple
@Tony.Nguyen137
@Tony.Nguyen137 11 ай бұрын
My favourite JS youtuber, I always learn something from you vids.
@oualidel-feraoui1318
@oualidel-feraoui1318 11 ай бұрын
Yes i want to see more of these. You're a great content creator
@ConnerArdman
@ConnerArdman 11 ай бұрын
Thank you! Glad you enjoyed it 😃
@mohamedelmahdy8190
@mohamedelmahdy8190 11 ай бұрын
Actually learning from you alot dude you truly JavaScript Sensi 🧑‍🏫🧑‍🏫
@typescriptuser
@typescriptuser 11 ай бұрын
I didn’t know JavaScript was this complicated until I see your contents. They’re really helpful! Thank you. :)
@deadlock_33
@deadlock_33 11 ай бұрын
Tu samjha.... Nai tu nai samjha
@harryzhu
@harryzhu Ай бұрын
illl tell u why - its bc u skipped to typescript just like every web developer who want to be hip lol
@typescriptuser
@typescriptuser Ай бұрын
@@harryzhuno i didn’t
@bikidas5473
@bikidas5473 11 ай бұрын
hey conner what sort of interview question you got for facebook was it purely algorithm based or js based or ? frontend concepts
@ConnerArdman
@ConnerArdman 11 ай бұрын
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).
@eshw23
@eshw23 11 ай бұрын
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 11 ай бұрын
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 11 ай бұрын
@@ConnerArdmanHi Conner, so what question can be asked in an interview
@ConnerArdman
@ConnerArdman 11 ай бұрын
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
@philipjohn2038
@philipjohn2038 11 ай бұрын
Great content 👍
@ConnerArdman
@ConnerArdman 11 ай бұрын
Thank you!
@sh8yt
@sh8yt 10 ай бұрын
6:56 seem that the most confusing thing in js pass by value and pass by reference
@mirjalol49
@mirjalol49 11 ай бұрын
damn, best content ever. love it, upload more pls
@ConnerArdman
@ConnerArdman 11 ай бұрын
Thank you!
@anup-kaushal
@anup-kaushal 11 ай бұрын
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 11 ай бұрын
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 11 ай бұрын
@@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 😂
@shubham-itachi
@shubham-itachi 11 ай бұрын
Bro where you are learning JavaScript pls reply
@anup-kaushal
@anup-kaushal 11 ай бұрын
@@shubham-itachi OMG! My comment got deleted for the third time.
@varunpalsingh3822
@varunpalsingh3822 11 ай бұрын
Amazing video, please make more video like this
@ConnerArdman
@ConnerArdman 11 ай бұрын
Thanks! Will do 👌
@asagiai4965
@asagiai4965 11 ай бұрын
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?
@vaishnomatabhaktamandali2000
@vaishnomatabhaktamandali2000 11 ай бұрын
I answered all of them correctly 😂maybe I didn't knew I know JS that much
@chriss87878
@chriss87878 11 ай бұрын
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
@ConnerArdman
@ConnerArdman 11 ай бұрын
Nice job! 👌
@mahmoudalaskalany
@mahmoudalaskalany 11 ай бұрын
Man , i got JS knowledge in these 10 mins more than my whole 4 years of college 🔥🔥
@davesharma8946
@davesharma8946 11 ай бұрын
I actually got most of them right Guess im getting strong in js😊
@heatherjackson920
@heatherjackson920 11 ай бұрын
I will give myself a B. I got a few of them, but I also messed up a few. Fun video!
@ConnerArdman
@ConnerArdman 11 ай бұрын
Nice! Glad you found the video fun 😃
@shubham-itachi
@shubham-itachi 11 ай бұрын
How to master JavaScript make roadmap on that. Pls
@vad1ck
@vad1ck 11 ай бұрын
😮
@harryzhu
@harryzhu Ай бұрын
I got 8/10
@kakashi_69_xd
@kakashi_69_xd 11 ай бұрын
it was easy enough..xd
@ob34915
@ob34915 10 ай бұрын
Imagine someone coming from static language and see this JS crap
@filcondrat
@filcondrat 11 ай бұрын
i remember all of those questions from my first js interviews 🥲
5 Essential JavaScript Interview Questions
20:32
Coding With Chaim
Рет қаралды 90 М.
Top 5 JavaScript Tricks You NEED To Know
13:49
Conner Ardman
Рет қаралды 6 М.
Was ist im Eis versteckt? 🧊 Coole Winter-Gadgets von Amazon
00:37
SMOL German
Рет қаралды 35 МЛН
My Favorite Code "Anti-Patterns" (Break These)
16:52
Conner Ardman
Рет қаралды 52 М.
Frontend CSS Coding Interview | Ft. Clément Mihailescu
26:35
Conner Ardman
Рет қаралды 79 М.
Get Ahead of 99% of Software Engineers (Start This Now)
9:23
Conner Ardman
Рет қаралды 18 М.
How Slow Is JavaScript? | Prime Reacts
15:34
ThePrimeTime
Рет қаралды 174 М.
The Async Await Episode I Promised
12:04
Fireship
Рет қаралды 1,1 МЛН
ex-FAANG Developer vs "Impossible" JavaScript Quiz
11:49
Conner Ardman
Рет қаралды 68 М.
React Coding Interview Ft. Clément Mihailescu
47:08
Conner Ardman
Рет қаралды 122 М.
Map vs Object in JavaScript
14:33
Leigh Halliday
Рет қаралды 21 М.
I Solved 1583 Leetcode Questions  Here's What I Learned
20:37
ThePrimeTime
Рет қаралды 560 М.
Hisense Official Flagship Store Hisense is the champion What is going on?
0:11
Special Effects Funny 44
Рет қаралды 2,8 МЛН
1$ vs 500$ ВИРТУАЛЬНАЯ РЕАЛЬНОСТЬ !
23:20
GoldenBurst
Рет қаралды 1,6 МЛН
تجربة أغرب توصيلة شحن ضد القطع تماما
0:56
صدام العزي
Рет қаралды 2,1 МЛН
Что еще за съемные фронталки от Vivo? #vivo
0:41