5 Must Know Interview Questions for Javascript!

preview_player
Показать описание
❤️ Support me because corporate sponsors rarely do!

🔥 Need a resume/cover letter? Check out my templates!

👊 Join the community!

My Other Socials🤳

Рекомендации по теме
Комментарии
Автор

The tricky question about the first task could be:
"What's the difference between first way (the push() and unshift() solution) and the second way (the spread operators' solution)?", because there is a significant difference. First way mutates the original array, but does not change the reference to it. The second way creates a new array and re-assign an original array, so the new reference is created.
In this particular example it doesn't matter since you're using `var`, but if you'd use `const` instead, then the second way would throw an error and the first would be the right one. ;)

ajotel
Автор

Thank you so much! This is exactly the kinda thing we need, you did a fantastic job giving the examples a walk through and explanation!

Whimmery
Автор

These questions and many other common ones will be so easy to you if you read 'You don't know JS' . As a beginner I feel like these small books are helpful in passing JS interviews

zarekivey
Автор

As a developing developer, going through shit like this is gold. It really helps form a better understanding on how it all works together. Thanks for putting the time into making these videos.

bigdaveliddle
Автор

At 7:05, you mentioned that the "num++" line in "inner" could not access the "num" variable that was defined in "outer" which I believe is incorrect. Variables can be accessed within a function scope that exists inside of another function scope that has made that variable accessible. By removing the line "var num=3", you'll see the console still outputs 3. Please correct me if I'm misinterpreting any of this.

America
Автор

I had a few questions like this in a first stage coding interview but the phone interview after was much more difficult. Some of the challenging ones were: explain the JS event loop, explain Promises, explain observables and event streams.

jackvial
Автор

This was very helpful. Please do more of these!

TheRealJameezi
Автор

The selection of the last question is good. Looking forward to more videos like this.

haopeiyang
Автор

I think num++ actually refers to the innermost num (num = 3), which is hoisted to the top of the inner scope before it has been defined, so we get undefined++, which evaluates to NaN. You can erase the 'var num = 2' and everything will still run the same.
BUT, if you change the 'var' to 'let' as in 'let num = 3;' then the hoisting doesn't happen and you will instead get an error -> avoiding hidden bugs.
Another good reason to use let!

fishplantfish
Автор

Hey Josh, even though your metrics might say I'm not watching your whole video, I Do download most of them and watch them on my phone as I'm working. Just wanted to let you know your content is appreciated and I really admire the amount of effort you put into your Channel.

SouthSideChiTown
Автор

Really good, please continue with this kind of junior interviews stuff. Thanks

nic_jaws
Автор

Thank you so much for this bro, this is EXACTLY what we need.

sagenoise
Автор

This was very helpful, short and sweet!

Holden_P
Автор

Thank you for your sharing! I'd love to learn more from your expearience. 😊

thtamtran
Автор

Cool vid man, thanks! I'm currently self-learning JS and videos like this help with confidence. The ES6 way of push and unshifting elements to an array was something I didn't know, so thanks for that!

philmyglass
Автор

Nice! Very helpful. Fantastic effects on your eyes.

busyrand
Автор

Wow, this video was surprisingly helpful for me. I didn’t expect it, but every question shown either reinforced something I’ve learned, or taught me something new or that I should have already known. Thanks Josh!

jthomasaurus
Автор

Josh, I know you don't really "do" development anymore, but this really helped me grasp closures finally. Thank you.

Cyrigar
Автор

please create more videos like this one! keep up the good work bro!

kretzsche
Автор

Joshua! please please more videos like this. This both let us learn or recap with actual possible interview questions.

thewted