Tricky JavaScript Interview Questions and Answers
Vložit
- čas přidán 11. 02. 2018
- Hard JavaScript Interview Questions and their possible answers ( cracking difficult coding interview questions )
For more interview questions checkout
*www.fullstack.cafe/?...
Please be my patreons on patreaon
* / techsith
Follow me for technology updates
* / techsith
* / techsith1
Help me translate this video.
* czcams.com/users/timedtext_vide...
Note: use translate.google.com/ to translate this video to your language. Let me know once you do that so i can give you credit. Thank you in advance. - Věda a technologie
Thank you, many times on an interview it becomes obvious the interviewer watched these videos too.
Honestly, I am happy that I found your tutorials. Now I am feeling a little bit comfy so I can prepare for the interview without worries
Same here buddy
I've been watching u for a while now, and your didactics (and thumbnails) are the best. Subscribed!
Great teaching! I have been searching this kind of videos for a long time. Thanks.
this was really helpful. i am using javascript for many years but never knew of so many features like freeze and seal
you proved that .. those are really useless
@@fidaLMFAO yeah they sound really dangerous tbh... why would i ever wanna make something completely immutable
Great video! You're a very good instructor and easy to understand as well.
Dude you killed it ... Thank you so much for the tutorial!!
Thank you so much for the video... helped me a lot.
Awesome techsith!! This is very helpful.
Great video. Each question taught me a concept I barely knew. Thanks for this gem !!!
Glad it was helpful!
Great class and very well explained.
Please keep this channel because I´m sure It has been helped a lot of developers which try learning more each single day like me.
Thanks
Dude I love you, please keep these going
This man is capable of explaining things well in a simple way, the way few people do. Thank you, sir.
I appreciate that!
Thanks for this amazing video.. I was eagerly waiting for next next questions !!!!
Thanks for those amazing videos!!
Thank you so much for these tricky things! Reallly useful.
Nice one. Thank you for uploading
Cool video. Thanks for the information!
as usual awesome video from techsith..keep doing your great job sir.
Thanks for the video. It's really helpful.
I loved this video, thanks !!
This vid was meant to subs both your channels. Thanks a ton!
Thanks for watching!
Thanks a lot techsith!
Thank you very much for sharing I really appreciate it.
these questions are so good, they give you a deeper understanding of javascript
Thanks, I learnt new methods from this session.
I'm about to watch every video you have, this is amazing!!
Glad you like them! Thanks for watching!
Great video sir.. Please keep posting such contents
For 3:00 question, I think in this solution that works for the input provided:
var nums = [1,2,2,3];
nums.splice(2,1);
console.log(nums);
I know it looks a bit silly but, hey, I got the answer. Obviously, if there is more than one duplicate, then the Set works fine.
8:43 - me at my homie house.
Thank you so much sir for these fantastic questions this helps me a lot
brilliant.....thanks a lot.... you are amazing !!!
great info, I learn I lot from this.
This video was amazing!
a good set of questions well explained ty @techsith
Very cool stuff!
Very important tutorial for fresher as well as experience person
Very nice video sir.
Thanks a lot.
Very useful information!
It was amazing, thank you
Awesome ....really helpfull and thanks lot....
Interesting! Thanks, man
Really need to thank you for a great in-depth video , i attended a client interview and i was able to answer it because of this .
Glad to help out?
Oh damn this is so tricky, then I think there should be many more tricks to ask these kind of questions. Thanks to Techsith
Helpful tutorial thank you
Thank you! amazing
Day by day am becoming a pro developer watching your videos :)
If you want to crack these questions then just ask the interviewer where he has used such scenarios. You'll be instantly selected
I'll add it to my *How to look smart in an interview* trello card, thanks!
The point is not to use it, the point is that as a senior you should be aware of the dangers of using tricky codes like this and stop others for doing something like 5 < 6 < 7 even if it works
I been denied on the last round of interview with CTO because of this answer. Everything was great until he decided to gave me a logical puzzle "You need to measure exactly 6 liters of water. But you only have a 4-liter and a 9-liter bucket. How can you do this?" I asked him "How often you guys are measuring water here with buckets" and been rejected right away...
@@anthonya606 Better off not working for them. Too egoistic if they cant even take a simple joke.
@@anthonya606 The thing being measured is irrelevant, they just wanted to test your problem solving skills. Although if you clarified that you were joking and still willing to try but they didn't want to hear it, then yea fuck 'em.
Awesome video sir. Thank you
Very useful!
i appreciate ur effort
This video is a goldmine for a CS freshy
Awesome Sir!!
Thank you for this.
I subscribed your channel..keep the good work 👍
Superb. Thanks Sir. Can you please do a video on typescript and es6 interview questions?
Owsome video sir. Please make more much video.
I really enjoy this tutorial,
If we need a revision of JavaScript, we watch your videos and interview questions.. Thank you so much
Reason behind "arguments" not working with arrow functions is that they take the scope of a parent block :3 so it actually shows parent function's arguments
@7:00 thats pretty interesting, and depends on the direction of associativity.
< and > (I hope those show up, less than and greater than) have left-to-right associativity.
= (equals sign) has right-to-left associativity, which is why we can do a = b = 4
developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Operator_Precedence
its like difference between these two .. console.log('1'+1+1)..and console.log(1+1+'1');
Sir, upload more videos. These videos are extremely useful. You are explaining things that people couldn't find in other tutorials.
Syam, I am glad that you are finding the videos very helpful. Keep I have lots of tutorials on fundamentals of JavaScript , Node, CSS , React and interview questions.
as "+" behaves as concatenate operator in first console JavaScript automatically converts int 2 to string and concatenate to result into = 22. While in second console log "-" acts as subtraction operator and converts string to integer and results to = 0.
Good! Thanks!
Thanks Sir for the videos you make.
About removing duplicates, if anyone does not want to use ES6, here is how it should be done in ES5.
var a = [1,2,2,3,4];
a.filter(function(value, index)
{
return (a.indexOf(value) == index)
});
here i have a tutorial on how to remove duplicates multiple ways. czcams.com/video/dvPybpgk5Y4/video.html
yes but he says you only have 1 line of code to solved it, and cannot use loops
and the problem with filters is it will take a lot of time to run, I mean running time is far more than SET that's why we should never use filter
@@owaisali995 i was not aware of this, can you explain a little more, or perhaps can share some material on this. Thanks in advance
thank you very much you upload a great video!
Thanks for watching Nadav!
thanks for everything ..a small request they usually interviewer ask ..where you have implemented this in project ,for closure and other things
That was awesome... Can't leave without subscribing... :-)
Thanks for sharing.
wonderful that's what we need
Awesome dude..👏👏
excellent video
Great videos, may i now what is online tool you use on videos for writing the code.
Nice explanation.
You are great. Hats off.
Thanks for a nice comment archana keep on learning
You not only taught us interview questions but also how to learn language passionately..!!
To learn language passionately this video might help. czcams.com/video/X1omyGA67Vg/video.html
great video!
This is well explained excellent tutorial. In very short time you covered a lot.
This is more useful beyond only pass the interviews.
Thanks for the nice comment :) and thanks for watching!
Thank you so much sir ❤️
6:32 let mean scope of the variable is in bracket or local in method..
Really awesome.
Awesome Sir..
This video is very helpful
Hello. Can i say something ?
You are the best teacher of JS in the whole WEB :)
Yes True. He is outstanding really
A lot of good quality information, well explained in a short time. Thanks! I'll subscribe
Thanks for subscribing.
Thanks a lot of man. Very interesting video.
Glad you liked it!
Nice video, just like the past one
Glad you liked it
nice sir ,
can you please add the lecture series of interview question of javascript, HTML CSS, and PHP,
and also add the lecture like top 50 or 100 php interview qauestion so that in single lecture we can get more information in details . really you are doing well. keep it up and thanks for your efforts.
The first problem you mentioned. the actual term used is Type coercion.
I have no words to thank you sir.... it's really really very helpful and your explanation is great🙏🙏🙏
Great sir, Javascript is really tricky and criptic. learning new things
Sir, you are grand master in JS. Thank you just keep us updating in js. 😊
Thank you, I will Aishwary!
JazakAllah Aameen 🙏 🤲 😍
awesome video
tysm sir , amazing video
Thank you Priyanka for watching!
great video
Thank You
oh god, i wish i never sit in front of you in a js interview.
@ThuatNham Hey can you please share secrets to crack interview
They aren't very good secrets if its in a youtube video!
lol
You must wish, if you want to learn more 😁
I feel sorry for companies who ask these silly questions.
This is the worst test possible to know if someone is an amazing programmer, a good programmer, a so so programmer, and someone who's really bad at programming that has no self awareness to how bad they really are.
seriously, if it were me going through the interview, I would withdraw my application form, greet the interviewee in front of me and say "Thanks, but no thanks".
does anyone know the extension for showing broken code at 9:52 in VS Code
well cone sir ... well done