Must Know Javascript Interview Questions

preview_player
Показать описание
MORE Junior Javascript Interview questions! Since my last JavaScript Interview video got lots of feedback and engagement I thought I'd make a followup. These interview questions are tailored for junior software, frontend and fullstack web developers. Like last time, I've included suggested answers for each question.

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

The main difference between regular and arrow functions is a context (this): regular function changes context (this = parent object), arrow function don't (this stays the same). This can be very useful.

max_iddqd
Автор

THIS:

The handling of this is also different in arrow functions compared to regular functions.

In short, with arrow functions there are no binding of this.

In regular functions the this keyword represented the object that called the function, which could be the window, the document, a button or whatever.

With arrow functions the this keyword always represents the object that defined the arrow function.

wotizit
Автор

04:39 I cant believe I've been coding for this long and never noticed this. I guess I automatically write my return statements the right way without thinking about it.

Brandon-tzpn
Автор

One big one for arrow functions is the this reference.

peanutcelery
Автор

THE MAIN difference for arrow functions is that they don't have the synonym "this".
That should be mentioned by anyone facing that question.

KAZVorpal
Автор

Thanks for these.

I'd say the gotcha function call with the line break might be disregarded nowadays with Prettier and autoformatters, but still good to mention.

incarnateTheGreat
Автор

One thing though is that promises are taken to the micro task queue which takes precedence over the callstack. While SetTimeouts etc do not.

jadehendricks
Автор

This really helps, thanks for the video!

min
Автор

great video. your explainations are crystal clear and concise. more interview questions please. thanks.

AIShorts
Автор

Today is my very first interview day and this video already helped me a lot. Thank you! I just subscribed and I'll keep track of your videos

crforever
Автор

You’re awesome thank you for sharing your experience 😊

js
Автор

awesome, thank you Catherine, this was awesome

Rantalytics
Автор

Woo hoo! I knew most of the answers. Except the last questions #4.

Adam-qeyo
Автор

This is so helpful Catherine. Thanks for the video! :)

geesunjang
Автор

Could you do an example on what happens during a live coding assessment or a whiteboard session? I know this is part of the technical interview and I have NO clue what the heck happens in them.

swtlynn
Автор

very informative I also noticed your nice hair

carloanimationTV
Автор

The example with object returning is mindfulness test)

norkrze
Автор

la penúltima pregunta, acerca de la diferencia entre foo1() y foo2() ¿se debe al salto de línea según entendí?

daniel
Автор

Amazing explanation Thank you sooo much

Drag_Star
Автор

at 2:30 it is actually not correct i think. this function for example

const test = () => {return "hi"};

and run it in your browser console. than run test(); it works. the reason why CODE SEMPLE 3 does not work because the Car class has to be defined. like

class Car {constructor(){
this.color = () => "hi"
}}

than you can instantiate it with

const test = new Test();

and can be called by

test.greet();

so i would look into clarifying that part, at around 2:30. And by the way, great video over all, sorry for the nit picking. Good content and using it for refreshing for an interview. thank you.

vycos-zen