Must Know Javascript Interview Questions

  Рет қаралды 105,170

Catherine Li

Catherine Li

Күн бұрын

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.
Link to my JavaScript Promises video: • Still Don't Understand...
Click here to subscribe to my channel for content on tech and software development careers and helping you land your first junior developer role: bit.ly/3DBIIRj

Пікірлер: 76
@max_iddqd
@max_iddqd Жыл бұрын
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.
@wotizit
@wotizit Жыл бұрын
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.
@jastheskater
@jastheskater 11 күн бұрын
Thank you, I have worked as mainly a backend engineer over the past 4 years and have an interview for a full stack position. I haven't touched much JavaScript in a while these days and these concise videos helped me refresh my memory on these huge differences in JavaScript compared to strongly typed languages (i.e. Java, C#). Thanks again!
@catherinelijs
@catherinelijs 7 күн бұрын
I’m really glad you found it useful!
@Brandon-tz5pn
@Brandon-tz5pn Жыл бұрын
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.
@peanutcelery
@peanutcelery 2 жыл бұрын
One big one for arrow functions is the this reference.
@rafaelortiz6574
@rafaelortiz6574 Жыл бұрын
The biggest one I think. If ask a candidate to name the key difference between arrow and normal functions, I expect this answer
@KAZVorpal
@KAZVorpal Ай бұрын
THE MAIN difference for arrow functions is that they don't have the synonym "this". That should be mentioned by anyone facing that question.
@incarnateTheGreat
@incarnateTheGreat 6 ай бұрын
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.
@cr7forever7877
@cr7forever7877 Жыл бұрын
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
@catherinelijs
@catherinelijs Жыл бұрын
Thank you much and good luck on your interviews!
@kardi3107
@kardi3107 Жыл бұрын
How did the interview go?
@cr7forever7877
@cr7forever7877 Жыл бұрын
@@kardi3107 that one was not that good but I got hired in the second interview 😅. Been working over 3 months
@lastspoil5547
@lastspoil5547 Жыл бұрын
​@@cr7forever7877I'm almost done my JavaScript course. How do I prepare for interview questions?
@jadehendricks2368
@jadehendricks2368 5 ай бұрын
One thing though is that promises are taken to the micro task queue which takes precedence over the callstack. While SetTimeouts etc do not.
@AIShorts119
@AIShorts119 2 жыл бұрын
great video. your explainations are crystal clear and concise. more interview questions please. thanks.
@catherinelijs
@catherinelijs 2 жыл бұрын
Thanks Nick! I’ll be doing more videos like this soon stay tuned.
@Adam-qe8yo
@Adam-qe8yo Жыл бұрын
Woo hoo! I knew most of the answers. Except the last questions #4.
@vycos-zen
@vycos-zen Жыл бұрын
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.
@sergiomendoza6833
@sergiomendoza6833 2 жыл бұрын
I am addicted more please
@swtlynn93
@swtlynn93 Жыл бұрын
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.
@dayronalfaro9461
@dayronalfaro9461 Жыл бұрын
Be confident, dont panic, even if you cant code try to think an solve the problem loud, break the problem in pieces and then try to code that with pseudocode or code
@TienNguyen-2909
@TienNguyen-2909 Жыл бұрын
I come from Asia and I thought you look like Asian, your video is very helpful and your voice very easy to hear. Thank you so much!!!
@Drag_Star8
@Drag_Star8 7 ай бұрын
Amazing explanation Thank you sooo much
@catherinelijs
@catherinelijs 7 ай бұрын
Really glad you liked it. I have a few more videos that you may like as well!
@geesunjang557
@geesunjang557 2 жыл бұрын
This is so helpful Catherine. Thanks for the video! :)
@catherinelijs
@catherinelijs 2 жыл бұрын
You’re welcome! Glad you found it useful
@carloanimationTV
@carloanimationTV Жыл бұрын
very informative I also noticed your nice hair
@js9549
@js9549 Жыл бұрын
You’re awesome thank you for sharing your experience 😊
@FM-bf7yq
@FM-bf7yq 2 жыл бұрын
This is gem❤️
@marcelorl8730
@marcelorl8730 Жыл бұрын
you forgot to mention about the this scope which is the actual key difference between arrow functions and regular functions
@deez778
@deez778 Жыл бұрын
and the this keyword!
@marshall-brown
@marshall-brown Жыл бұрын
I believe the word you mean is "context" not scope
@Rantalytics
@Rantalytics Жыл бұрын
awesome, thank you Catherine, this was awesome
@petergriff7624
@petergriff7624 Жыл бұрын
I tried this : function run(){ console.log(1); setTimeout(function(){console.log(2),1000}) setTimeout(function(){console.log(3),0}) console.log(4); } run(); output is: 1 4 2 3 so 2 won't be console logged last But thanks for this i didnt know about this order of preference .
@michaelauditore7230
@michaelauditore7230 Жыл бұрын
You wrote it incorrectly
@user-no2rk3rz4e
@user-no2rk3rz4e Жыл бұрын
The example with object returning is mindfulness test)
@min0234
@min0234 Жыл бұрын
This really helps, thanks for the video!
@NicolePimenta
@NicolePimenta Жыл бұрын
Perfect video !thankss
@user-ey3pq5ke3c
@user-ey3pq5ke3c 10 ай бұрын
Great video!
@bekurmolla6477
@bekurmolla6477 Жыл бұрын
Great video. It was very helpful 🙌🏽
@darz_k.
@darz_k. 2 жыл бұрын
Thank you!
@umarmamatov2985
@umarmamatov2985 8 ай бұрын
array1.map(function(x) => { return x*2 })😅
@EnzoAuditore
@EnzoAuditore Жыл бұрын
Thank you for this.
@lastspoil5547
@lastspoil5547 6 ай бұрын
The two videos you have on JavaScript interview questions are enough to study or do we still need to study leetcode? Also, will we be asked React questions? ❓
@catherinelijs
@catherinelijs 5 ай бұрын
You'll still need to brush up on leetcode and React, with way more competition for jobs now, hiring managers are asking detailed questions.
@dayronalfaro9461
@dayronalfaro9461 Жыл бұрын
Once you say "I Should set a counter" I stop listening the video an start couting the word function an cheeck the counter to see if it's wrong jejejejeej
@MrBeastFan_Gyak
@MrBeastFan_Gyak Жыл бұрын
great video , thank you !!
@arpitjha2843
@arpitjha2843 2 жыл бұрын
Awesome 😎
@catherinelijs
@catherinelijs 2 жыл бұрын
Thanks!
@rashim
@rashim 3 ай бұрын
4:50 It will throw syntax error, and won't return undefined. Unexpected token '}'
@Arabian_Abomination
@Arabian_Abomination 2 жыл бұрын
Thanks
@eliascarrion1053
@eliascarrion1053 2 жыл бұрын
Thanks!!!
@catherinelijs
@catherinelijs 2 жыл бұрын
You’re welcome Elias!
@BirhanNega
@BirhanNega 8 ай бұрын
Thank you
@catherinelijs
@catherinelijs 8 ай бұрын
You’re welcome thanks for watching!
@daniel4661
@daniel4661 Жыл бұрын
la penúltima pregunta, acerca de la diferencia entre foo1() y foo2() ¿se debe al salto de línea según entendí?
@alisonroa5823
@alisonroa5823 Жыл бұрын
Si, JavaScript autoañade un ; al final del return porque no hay nada que continúe en la misma linea, en este caso está en la siguiente línea entonces no retorna nada y deja de ejecutar la función. En el ejemplo es: Return { }. Las llaves con indicaciones están en la línea de abajo y JS solo leyó el return.
@11Najim11
@11Najim11 9 ай бұрын
2:34 is wrong. You can use them as object constructors, just put braces around them
@shooting4star2023
@shooting4star2023 Ай бұрын
The foo1 and foo2 question at 4:21 is seriously a screw-up in JavaScript.
@AhSchit
@AhSchit 2 жыл бұрын
This is ok but I got asked all these in my junior position screening interview, what am I gunna get in my second and more technical interview?
@notsmoothie
@notsmoothie Жыл бұрын
What did u get asked? 😅
@usua1myanmarian
@usua1myanmarian Жыл бұрын
She really put that counter up there, lol.
@ahmedfarhan4353
@ahmedfarhan4353 Жыл бұрын
Does front end die ?
@20mim20
@20mim20 10 ай бұрын
@3:49 did you say the f word ? I dont blame you lol
@catherinelijs
@catherinelijs 10 ай бұрын
🤐
@20mim20
@20mim20 10 ай бұрын
@@catherinelijs its ok your secret is safe 🤫
@emilz0r
@emilz0r 3 ай бұрын
Did you really use jQuery for the promise example?🤭
@DeLaFaKoNaM
@DeLaFaKoNaM Жыл бұрын
Don't understand... I need to learn more 😩
@muizuddeenahmad6142
@muizuddeenahmad6142 2 жыл бұрын
How can i contact you ma'am ?
@wotizit
@wotizit Жыл бұрын
Malady
@Muruwen
@Muruwen 8 ай бұрын
Great video!
@catherinelijs
@catherinelijs 8 ай бұрын
Thanks Trini!
10 JavaScript Interview Questions You HAVE TO KNOW
13:41
James Q Quick
Рет қаралды 57 М.
What a REAL web developer interview is like (Front End)
19:59
Joshua Fluke
Рет қаралды 1,4 МЛН
Blue Food VS Red Food Emoji Mukbang
00:33
MOOMOO STUDIO [무무 스튜디오]
Рет қаралды 33 МЛН
У ГОРДЕЯ ПОЖАР в ОФИСЕ!
01:01
Дима Гордей
Рет қаралды 6 МЛН
Cute kitty gadgets 💛
00:24
TheSoul Music Family
Рет қаралды 21 МЛН
JavaScript Interview questions everyone gets wrong
6:40
Catherine Li
Рет қаралды 28 М.
Software Engineering Job Interview - Full Mock Interview
1:14:29
freeCodeCamp.org
Рет қаралды 1,4 МЛН
TypeScript Interview Questions 2024 (Junior & Mid)
13:46
theSeniorDev
Рет қаралды 7 М.
Nail the Javascript technical interview
12:54
Catherine Li
Рет қаралды 8 М.
5 Essential JavaScript Interview Questions
20:32
Coding With Chaim
Рет қаралды 91 М.
A subscriber was asked these interview questions for a junior role
44:35
Beginner React.js Coding Interview (ft. Clément Mihailescu)
36:31
Ben Awad
Рет қаралды 2,1 МЛН
Javascript Coding Interview Questions- You Must Know Them
17:06
Monsterlessons Academy
Рет қаралды 17 М.
Google Frontend Interview With A Frontend Expert
47:59
Clément Mihailescu
Рет қаралды 1 МЛН
How I Passed The Google Coding Interviews
18:50
Chris Jereza
Рет қаралды 40 М.
Blue Food VS Red Food Emoji Mukbang
00:33
MOOMOO STUDIO [무무 스튜디오]
Рет қаралды 33 МЛН