JavaScript Interview questions everyone gets wrong

preview_player
Показать описание
In this video I’m going over MORE JavaScript interview questions that you might encounter in your software developer interviews. This video will feature questions that really test your understanding of common pitfalls and weird parts of JavaScript, such as “this” keyword and scope chain.

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

The correct answer to all of these: it won’t pass code review.

artemsapegin
Автор

Have an interview tomorrow and have been binge watching all your videos

josem
Автор

It's crazy to me that after 4 years of uni, now that I am lookinf for a new job, I am looking at this vids to prepare for interview. Most concepts aren't really used at all in real life and thus things get forgotten. Makes you question the real use of these questions xD Anyways thanks for the great vid

triggerticker
Автор

Binging all of these videos now that I am expecting some tech interviews. This is also great insight! I wish I was looking these up BEFORE when I was giving interviews. Thanks!

meetkass
Автор

Do they really still ask questions including var ? I literally NEVER use var

martapfahl
Автор

These are definitely good academic things to know to understand some of Javascript's history and design philosophy, but any company actually asking me this many questions about my understanding of "this" and "var" would make my really wary of moving forward. This would indicate to me that first, the company might still be using var in practice which for all intents and purposes is almost always the worst option to use for instantiation, and that second the company might be using JS for OOP, which would indicate to me a big mistake, as JS really shines now with a functional focus and there are much better languages to use for OOP. I will concede though its important to understand the context of the arrow function vs a functional declaration.

I would say much more important and likely questions to get in a modern JS interview, relate to especially closures, first-class functions, and might even touch on typing with TS.

alexandersnider
Автор

That's why you don't commit the obscenity of putting the curly braces on the next line.
They go on the same line as the statement.
Always.

KAZVorpal
Автор

I specifically search for your videos lol. they have helped me previously in my interviews alot. Thanks alot Chatherine 🙌

haidermansoor
Автор

The more I watch these vids, the more I cringe at my prior confidence in JavaScript

keifer
Автор

Really love these old school questions ❤ Everyone should know this

stewart
Автор

I like it somuch.... kindly do more vdo based questions on javascript function

anujk
Автор

Wow, super straightforward thanks Catherine!

Gio-m
Автор

How common are questions regarding var vs let and arrow funcs vs normal funcs? I started learning JS self taught around June of 2022 so almost everything I’ve learned and built has been with the latest syntax. Would you recommend learning more about pre-es6 topics solely to prep for interviews?

costcomembership
Автор

Thanks i never really understood arrow functions but this helps

Phearzmeh
Автор

Thank you for this video. Much needed :) .

aten
Автор

canadian confirmed, lol. also...on the first one, i've been doing python the past 2 months and i'm going to be ruined when i get back to JS...now to watch the rest of this video

madimakes
Автор

Me in 2024: "Did var ever exist in JavaScript? I've never seen it in any codebase."

TokyoXtreme
Автор

At 3:27, the settimeout example, it prints 5, 5 times.
I have a question, how can it print 5 when the for Condition is false since i=5, but condition says i<5, so it will only take upto number 4, although 0, 1, 2, 3, 4 are 5 numbers but still i am confused.

srirampaga
Автор

The second example, console.log(x) would actually return 21 instead of undefined. Yes variable x is hoisted, but code runs from line 1 and below. So if girl() is invoked, that means at that point x is initialized with the value of 21. (if you try in your browser)

thisisYirou
Автор

in the last question, b++ of inner() is incrementing var b = 2 of outer(), correct? (This is a closure, yes?)

lunchboxUFX