No video

Tricky JavaScript interview questions and answers

  Рет қаралды 132,918

techsith

techsith

Күн бұрын

Top 10 Trickiest weirdest JavaScript Interview Questions and their possible answers ( path to crack tough JS interview )
Please be my patreons on patreaon
* / techsith
Follow me for technology updates
* / techsith
* / techsith1
Help me translate this video.
*

Пікірлер: 1 100
@vinodhkumar457
@vinodhkumar457 6 жыл бұрын
This one is important for JS developers.
@Techsithtube
@Techsithtube 6 жыл бұрын
Thanks for watching ! :) Thanks for the support ! )
@JLO72713
@JLO72713 3 жыл бұрын
Very helpful, your you defeated the Google beast
@GabrielVasile
@GabrielVasile 5 жыл бұрын
For getting total number of arguments, in ES6 we can do let x = function (...args) { return args.length; } and for the method chaining we can use return this;
@vinikett9114
@vinikett9114 4 жыл бұрын
Brother you are one of the most efficient teachers for teaching programming on youtube that i could find.You explain concepts really well.Its sad that youtube is doing this to constructive youtubers like you.You have all my support!
@rojiherrera
@rojiherrera 6 жыл бұрын
"This is an INTERVIEW, not a RACE" -techsith ☝️
@zajebojca
@zajebojca 6 жыл бұрын
This question with "returning total number of arguments" can be solved in much simpler way. const x = function(){ return arguments.length; } The object 'arguments' has property ''length'.
@cassavandumbi2734
@cassavandumbi2734 6 жыл бұрын
You are either wrong or you mean the opposite. the below returns 4 function x(a,r,t){ return arguments.length; } console.log(x(5,5,6,7))
@dand8282
@dand8282 6 жыл бұрын
you can count formal parameters (aka "required arguments") with function.length, not arguments.length, which is a count of what's passed.
@kamoroso94
@kamoroso94 6 жыл бұрын
I was thinking the same thing, but also what's the point of no loops? How would a loop even help solve this problem lol.
@ravikumargrandhi6315
@ravikumargrandhi6315 5 жыл бұрын
output will be 4
@ravikumargrandhi6315
@ravikumargrandhi6315 5 жыл бұрын
x(.....) function will return how many arguments you are passing while calling x(....).
@robertmasters5578
@robertmasters5578 6 жыл бұрын
This is great, I have a couple of job interviews next week for JavaScript roles and you have really helped me to build my confidence in preparation for this. Please keep posting videos :-)
@sadunozer2241
@sadunozer2241 Жыл бұрын
5 years later and this video is still relevant. I didn’t watch it fully this time… but I do remember everything about it vividly. An absolute classic❤
@subratkumar5901
@subratkumar5901 6 жыл бұрын
I am following you since couple of months.. You are champ man. Keep it up.. 1000 likes from my side
@Techsithtube
@Techsithtube 6 жыл бұрын
Hi Subrat, thanks for watching! :)
@ArjunKesava
@ArjunKesava 5 жыл бұрын
To print the length of arguments (17:33), we can simply write: return arguments.length; inside the function instead of using Slice method.
@Techsithtube
@Techsithtube 5 жыл бұрын
That is true Arjun. Slice helps to convert argument to an array and then you can use other array features like join() and things.
@xuelianwang5300
@xuelianwang5300 5 жыл бұрын
Very interesting JavaScript question! Thank you for sharing!! Thank you for taking time and effort to make so many nice JavaScript videos!
@pmahesh6789
@pmahesh6789 4 жыл бұрын
Your all videos so far I have been seen are really deserves thumbs up ( 👍 ), Please keep doing your good work... and hope KZfaq should not harm you.
@kamoroso94
@kamoroso94 6 жыл бұрын
KZfaq's algorithm is so stupid. Your videos are good quality and don't deserve to be demonitized.
@Techsithtube
@Techsithtube 6 жыл бұрын
Thanks for the support Kyle! :)
@nintichance
@nintichance 6 жыл бұрын
I've been watching your videos over the past few days and they've been extremely helpful and informative!
@Techsithtube
@Techsithtube 6 жыл бұрын
Thanks for watching Ninti! :)
@LolowBlazee
@LolowBlazee 6 жыл бұрын
Love those tricky questions, we actually keep learning :)
@sammiliu2524
@sammiliu2524 4 жыл бұрын
Great video, very useful
@ernestromen1479
@ernestromen1479 5 ай бұрын
You helped me a lot in job interviews. Actually I am preparing for an interview right now with the help of your video. Thank you!
@vladanng
@vladanng 6 жыл бұрын
What a fantastic videos. I remember watching your one year ago it feel like nostalgia, because i spend hours and hours watching your videos, trying to understand things. For now, i did not find better one tutorials on JS stuff on youtube at least. Just fantastic.
@Techsithtube
@Techsithtube 6 жыл бұрын
Thanks for watching and welcome back !
@tochukwuibe2139
@tochukwuibe2139 5 жыл бұрын
Getting ready for my first interview, your content is really helpful
@Techsithtube
@Techsithtube 5 жыл бұрын
Good luck with your interview. !
@momentswithmanisha
@momentswithmanisha 4 жыл бұрын
I learned new things. Thank you clearing my Concept 😇
@yakirifrah
@yakirifrah 5 жыл бұрын
Thanks for making this video which helps me understand tricky concepts of JavaScript. Thanks a bunch
@ParasFtl
@ParasFtl 5 жыл бұрын
This is one of the best channel to advance your JavaScript.
@pavelerokhin1512
@pavelerokhin1512 6 жыл бұрын
There is no inappropriate content in this video, dear KZfaq
@RajendraTaradaleBeHappy
@RajendraTaradaleBeHappy 5 жыл бұрын
Thanks for tricky question - didn't aware of this magic
@astro-zodiac
@astro-zodiac 2 жыл бұрын
6:10 That's a cool trick to impress your co-workers, If they dont know it 😂😂
@shawnmichaelalberto7519
@shawnmichaelalberto7519 Жыл бұрын
@3:26 now I fully understand how styled components work. You are such a good teacher
@babinicz91
@babinicz91 6 жыл бұрын
Best Interview series!
@ryanlozon5712
@ryanlozon5712 6 жыл бұрын
Please keep up the awesomeness.
@ozzyfromspace
@ozzyfromspace 2 жыл бұрын
@17.25, a more concise solution is: const x = (...rest) => rest.length; Awesome video, Techsith. I'm 100% subbed 🏆🎊. Most of these questions really had be thinking haha
@surferbum618
@surferbum618 6 жыл бұрын
Thank you for helping strangers! I hope KZfaq does right by you and you can keep the videos coming. They're a great help.
@MylesGmail
@MylesGmail 5 жыл бұрын
I love ur videos, thx!!!
@jakekim1442
@jakekim1442 6 жыл бұрын
Awesome tutorials man.
@tarekjamil6348
@tarekjamil6348 6 жыл бұрын
Jake Kim Hi
@ollehbudiak7150
@ollehbudiak7150 4 жыл бұрын
Thanks for your work. console.log(arguments.length); vs console.log([].slice.call(arguments).length);
@SlayBellsMusic
@SlayBellsMusic 2 жыл бұрын
I'm finding all your interview videos helpful. I have my first ever on Monday and feel much more confident going in.
@theinternetcash
@theinternetcash 5 жыл бұрын
my first javascript interview coming up very soon
@Techsithtube
@Techsithtube 5 жыл бұрын
Good luck!
@Toni7926
@Toni7926 6 жыл бұрын
Nice video, keep up the good work! (:
@Techsithtube
@Techsithtube 6 жыл бұрын
Thanks for the support ! )
@itsimpl6257
@itsimpl6257 5 жыл бұрын
The reason you cited why the interviewer asks such weird questions are all very correct.
@sistlavenkatesh2993
@sistlavenkatesh2993 3 жыл бұрын
This video is important video for ui developers. Very informative video infact.
@SK-ur3hw
@SK-ur3hw 6 жыл бұрын
Great interview questions 👍🏻
@Techsithtube
@Techsithtube 6 жыл бұрын
Thanks for watching ! :)
@njcoutinho1
@njcoutinho1 6 жыл бұрын
Wonderful to learn this. Thank you
@vlad981
@vlad981 6 жыл бұрын
Thanks! Great video! Hope KZfaq will change its policy, keep it up please)
@Techsithtube
@Techsithtube 6 жыл бұрын
Thanks for the support ! )
@christmasvillage3652
@christmasvillage3652 5 жыл бұрын
your videos are awesome and KZfaq is very discouraging. Keep up the good work sir.
@shwetapaliwal2424
@shwetapaliwal2424 5 жыл бұрын
seriously very much needed video for developers
@Techsithtube
@Techsithtube 5 жыл бұрын
Thank you shweta for a nice comment! :)
@otavioaraujo4320
@otavioaraujo4320 2 жыл бұрын
Amazing! The String constructor one was cool haha
@nitinagrawal6637
@nitinagrawal6637 4 жыл бұрын
Appreciate & yes maximum people make a list of questions to ask from the internet for the interviews & then start expecting the answers for those questions from candidates & in reality maximum interviewers also dont have any freaking idea for those answers. But current interviews have become a race, a questions/answers session, a Viva.
@MrVisheshsingh
@MrVisheshsingh 6 жыл бұрын
Thanks for the video. We all support you for all the hard work you are doing!
@Techsithtube
@Techsithtube 6 жыл бұрын
Thanks for your support! :)
@ejikeezekwunem4162
@ejikeezekwunem4162 2 жыл бұрын
What a great video. I had my hand over my head all the way. Like I would literally fail all the questions without your solutions. Thank you so much.
@ryanmfahey1
@ryanmfahey1 6 жыл бұрын
This is very helpful. I am conducting JavaScript interviews in the next couple weeks. This has been a great resource (along with your other videos).
@Techsithtube
@Techsithtube 6 жыл бұрын
Thank you for watching Ryan. Good luck with your interviews!
@danielhughes3758
@danielhughes3758 3 жыл бұрын
Thank you so much for this. It's interesting to hear your perspective on these tricky questions and I appreciate your openness and honesty about youtube monetization
@Techsithtube
@Techsithtube 3 жыл бұрын
Glad it was helpful!
@jomesias
@jomesias 4 жыл бұрын
I’m just here to tell youtube this video is important!!
@Techsithtube
@Techsithtube 4 жыл бұрын
Thanks for the comment buddy!
@sufiyan0011able
@sufiyan0011able 5 жыл бұрын
Thanks for making this video. Its a great help for guys like us.
@Techsithtube
@Techsithtube 5 жыл бұрын
Sufiyan, thanks for the comment.
@jeremybissonnette9403
@jeremybissonnette9403 3 жыл бұрын
Super helpful video while Im studying for a job interview
@Mr_BetaMax
@Mr_BetaMax 5 жыл бұрын
I did not know about the contenteditable attribute!! It's awesome
@DevRaj-tk3kc
@DevRaj-tk3kc 6 жыл бұрын
Nice tricky questions. These are proper genuine content videos.
@sanketatmaram
@sanketatmaram 4 жыл бұрын
function a() { console.log(arguments.length); } Above will also work for arguments length.
@MrErererererr
@MrErererererr 5 жыл бұрын
Thank you. I have my interview tomorrow and if I pass it, it thanks to you.
@jcmarquezgalvis
@jcmarquezgalvis 5 жыл бұрын
Did you pass?
@ra5898
@ra5898 4 жыл бұрын
Plg send me the question I don't have idea I prepared the interview my email id kamalrajawat870@gmail.com I have prepared in web development plg text all questions
@nancycreeksong9879
@nancycreeksong9879 5 жыл бұрын
Techsith videos have been very useful to me. Thank you.
@findachin
@findachin 4 жыл бұрын
This was a very informative video. Thank you for creating it! I'll be sharing this with some of my programmer friends :)
@007souravray
@007souravray 3 жыл бұрын
this video is important for JavaScript developers !!
@Techsithtube
@Techsithtube 3 жыл бұрын
Thanks for watching Sourav!
@swethavutukuru
@swethavutukuru 3 жыл бұрын
u have gr8 knowledge on Javascript. I am learning a lot from u. I am looking forward for more technical videos from u.
@dikshachavan9075
@dikshachavan9075 5 жыл бұрын
you are great at teaching. very useful examples to understand js
@Techsithtube
@Techsithtube 5 жыл бұрын
Thank you Diksha, Keep on learning!
@ErnestGWilsonII
@ErnestGWilsonII 6 жыл бұрын
I am already subscribed to your channel and I get alerts but I wanted to let you know that I really appreciate your content thank you for making videos and posting them for us!
@Techsithtube
@Techsithtube 6 жыл бұрын
Ernest , Thanks you for watching! :)
@AB-tx7eh
@AB-tx7eh Жыл бұрын
5 years later still a great content ✨
@cemiluzunhasan1366
@cemiluzunhasan1366 3 жыл бұрын
I'm studying my interview with your videos. If I pass, I will edit my comment and I hope it's going to be well because the videos are very great. The contents are preparing the audience to the tricky and hard questions. Especially the ones that include mock interviews. Keep it going!
@viddusliteracy9087
@viddusliteracy9087 2 жыл бұрын
Hey did u selected or not
@gouravgirdhar9973
@gouravgirdhar9973 5 жыл бұрын
I'm grateful for all the effort you are putting in which makes learning so much easier. Thanks for all the hardwork
@Techsithtube
@Techsithtube 5 жыл бұрын
Thanks for watching Grourav. I am gladthat it helped!
@discountmilakya6143
@discountmilakya6143 4 жыл бұрын
Very informative video . it's really help me. Thank You Sir
@karanveersingh6943
@karanveersingh6943 5 жыл бұрын
Grear video! Always putting out worthwhile content😁
@devolee8302
@devolee8302 5 жыл бұрын
'Document.body.cotentEditable = "true" ' is super cool !!!
@Techsithtube
@Techsithtube 5 жыл бұрын
Yes first time i saw contentEditable I was blown away. :)
@alex_zan
@alex_zan 6 жыл бұрын
Really helpful video! We need more of those on KZfaq!
@Techsithtube
@Techsithtube 6 жыл бұрын
I have a plan for more such videos. keep an eye on the channel for that.
@ishanmehta8201
@ishanmehta8201 5 жыл бұрын
really helpful for learning strange things about javascript.
@Techsithtube
@Techsithtube 5 жыл бұрын
Ishan, yes JS is strange and I find new strange things every single day.
@atmansangeethamani5373
@atmansangeethamani5373 5 жыл бұрын
Hi Sir, Your javascript interview part of videos are very helpful. actually I have found an another way in that question of function return total number arguments you have explained like function x(){ return [].slice.call(argunments).length; } x(1,2) // 2 length Found another way is arguments is a array like object it has number of array of arguments of function function x(){ return arguments.length; } x(1,2,3) // 3 simply we return arguments.length that will give lenght of arguments of function am getting answer for this way too.. Thanks once again sir.
@funcomedy2
@funcomedy2 9 ай бұрын
Very interesting JavaScript question! Thank you for sharing!!
@friendlydhaba4689
@friendlydhaba4689 4 жыл бұрын
All the videos are career-boosting!!!
@Techsithtube
@Techsithtube 4 жыл бұрын
Glad you fee that way. Thanks for the support.
@rajatsrivastava574
@rajatsrivastava574 4 жыл бұрын
The way you explain the JavaScript are really awesome.
@Techsithtube
@Techsithtube 4 жыл бұрын
Glad you think so! Thanks for watching!
@6keff
@6keff 6 жыл бұрын
Excellent video!, I didn't knew about content editable property until now. Thanks!
@Techsithtube
@Techsithtube 6 жыл бұрын
yes, its a neat trick.:)
@Fikayoz
@Fikayoz 6 жыл бұрын
Thank you so much for this video! I hope this channel grows even larger!
@Techsithtube
@Techsithtube 6 жыл бұрын
Thanks for your support Fikayoz!
@kuhim3753
@kuhim3753 4 жыл бұрын
Best KZfaq channel for JavaScript interview
@glendysfilsinger5473
@glendysfilsinger5473 6 жыл бұрын
I am a new subscriber, and I can tell you that I love your content and videos... It is awesome!!! keep up the great work :)
@balanepalaiyathane9714
@balanepalaiyathane9714 4 жыл бұрын
Very nice and useful one. Techsith really helping the community...
@nishanth-saka
@nishanth-saka 2 жыл бұрын
By far the best channel for learners!
@lolmos
@lolmos 3 жыл бұрын
Dude I love the videos you're really helping me and many others on our Dev path
@sathishkumarcisco
@sathishkumarcisco 6 жыл бұрын
question : function return total number of arguments. // do not use loops. let x = function(){ return [].slice.call(arguments).length; } Below one is more simple : let x = function(){ return arguments.length; }
@nandac2820
@nandac2820 5 жыл бұрын
This video is great but and your explanation is good. I really did't understand the concept of asking these kind of questions in interview. Until and unless you faced these kind of scenarios in real time you never know the answer. I do have some decent experience like 6+ in JS but I faced these situations very rare when we work on framework. (9 out of 10 developers dont remember things after fixing an issue) So if some one answered these kind of questions means they saw these videos(assume {some number} out of 10) or read somewhere. So what are you interviewing real time experience or some interview preparation ? As an interviewer I will ask concepts(not these tongue twisters). architecture of application/framework and mainly approach on solving problem and wiling to learn.
@khusbookumari2149
@khusbookumari2149 3 жыл бұрын
your videos are so important for any developer.
@nunoRRsantos
@nunoRRsantos 5 жыл бұрын
im glad you fixe YT problems for ads...your videos eally helpme a lot thanks👏
@ephdawg3374
@ephdawg3374 6 жыл бұрын
Thanks for your videos, they are always so helpful. Learned some great things from this one !!
@vaseafrolov68
@vaseafrolov68 5 жыл бұрын
Thanks for this video, and thanks youtube for not blocking it :-)
@indianhikinggirl
@indianhikinggirl 5 жыл бұрын
Please come up with more videos of this type. It would be very helpful for interviews. Thanks
@Techsithtube
@Techsithtube 5 жыл бұрын
I have a whole series of such videos. do check it out the playlist
@kurisuisaway
@kurisuisaway 6 жыл бұрын
You're awesome, your videos are helping me a lot. If I pass my interview tomorrow I'll become a patreon. Thank you very much!
@Techsithtube
@Techsithtube 6 жыл бұрын
Good luck with your interview Andrea. :)
@aakritigangwal7659
@aakritigangwal7659 6 жыл бұрын
Thankful for good bunch of Interview questions ons JS.
@CodersGyan
@CodersGyan 4 жыл бұрын
One of the best tutorial :)
@swethas7320
@swethas7320 5 жыл бұрын
Good video to understand JavaScript concepts in depth
@daltoncepheus
@daltoncepheus 6 жыл бұрын
Techsith is really good for JS developers
@rushabhshah6373
@rushabhshah6373 5 жыл бұрын
If my job interview clear I will donate on patron.
@Techsithtube
@Techsithtube 5 жыл бұрын
I appreciate the gesture Rushabh. Thank you for watching!
@sam123sujeet
@sam123sujeet 4 жыл бұрын
Really like this tricky interview questions series. Keep posting it
@SebastianWeszler
@SebastianWeszler 6 жыл бұрын
Thanks for this video, it helped me understand JS better
@miroslavspirkoski5623
@miroslavspirkoski5623 5 жыл бұрын
Thanks a lot for this video, you are really unique with this content!
@vijaychachadi369
@vijaychachadi369 2 жыл бұрын
Very helpful tips, you are the best mentor that i have ever seen
@harikumargurudu5260
@harikumargurudu5260 6 жыл бұрын
Thank you for your videos. We are with you and please keep on posting videos.
@Techsithtube
@Techsithtube 6 жыл бұрын
Hari, Thank you for your support! :)
@sunnychaudhary35
@sunnychaudhary35 3 жыл бұрын
superb tricky questions. thank you so much and it is really appreciable.
@Techsithtube
@Techsithtube 3 жыл бұрын
You are most welcome
@JB-pl8vj
@JB-pl8vj 4 жыл бұрын
Thank you for taking the time to teach us! Cheers
@Techsithtube
@Techsithtube 4 жыл бұрын
My pleasure!
@RahulPandey034
@RahulPandey034 5 жыл бұрын
Hi, For simplicity of typing I have used iife... Why you have done like this ? any benefit? (function x (a , b, c, d) { return [].slice.call(arguments).length; })(1, 2, 3, 4); Instead of simply returning length of arguments array like- (function y (a , b, c, d) { return arguments.length; })(1, 2, 3, 4); Thanks, Rahul
@rampande5830
@rampande5830 5 жыл бұрын
found tutorial very useful. Learnt new things in JS. Thank you.
Top Tricky JavaScript Interview Questions and Answers
15:42
techsith
Рет қаралды 82 М.
Tricky JavaScript Interview Questions and Answers
16:35
techsith
Рет қаралды 457 М.
How I Did The SELF BENDING Spoon 😱🥄 #shorts
00:19
Wian
Рет қаралды 37 МЛН
What will he say ? 😱 #smarthome #cleaning #homecleaning #gadgets
01:00
The Joker kisses Harley Quinn underwater!#Harley Quinn #joker
00:49
Harley Quinn with the Joker
Рет қаралды 19 МЛН
Tricky CSS Interview Questions and Answers
13:09
techsith
Рет қаралды 42 М.
How to pass JavaScript interviews. Guide for Junior Developers
21:37
Answering tricky JavaScript interview questions
35:16
freeCodeCamp.org
Рет қаралды 67 М.
Javascript Interview Questions and Answers - Dominate Your Next Interview
1:02:33
Monsterlessons Academy
Рет қаралды 70 М.
top 10 JavaScript tricks
17:18
techsith
Рет қаралды 19 М.
Javascript Closure tutorial ( Closures Explained )
12:52
techsith
Рет қаралды 543 М.