Tricky JavaScript interview questions and answers

  Рет қаралды 133,232

techsith

techsith

Күн бұрын

Пікірлер: 1 100
@vinodhkumar457
@vinodhkumar457 7 жыл бұрын
This one is important for JS developers.
@Techsithtube
@Techsithtube 7 жыл бұрын
Thanks for watching ! :) Thanks for the support ! )
@JLO72713
@JLO72713 3 жыл бұрын
Very helpful, your you defeated the Google beast
@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.
@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;
@zajebojca
@zajebojca 7 жыл бұрын
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 7 жыл бұрын
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 6 жыл бұрын
output will be 4
@ravikumargrandhi6315
@ravikumargrandhi6315 6 жыл бұрын
x(.....) function will return how many arguments you are passing while calling x(....).
@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!
@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 :-)
@rojiherrera
@rojiherrera 7 жыл бұрын
"This is an INTERVIEW, not a RACE" -techsith ☝️
@subratkumar5901
@subratkumar5901 7 жыл бұрын
I am following you since couple of months.. You are champ man. Keep it up.. 1000 likes from my side
@Techsithtube
@Techsithtube 7 жыл бұрын
Hi Subrat, thanks for watching! :)
@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! :)
@meetidnani
@meetidnani 6 жыл бұрын
Thanks for your videos, they are really helpful. For the question related to number of arguments ...i could simply also do the below var y = function() { console.log(arguments.length); }; y(1,2,3,4,5); Any specific reason for using [].splice ......
@Techsithtube
@Techsithtube 6 жыл бұрын
yes you could simply use arguments.length
@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!
@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❤
@tochukwuibe2139
@tochukwuibe2139 6 жыл бұрын
Getting ready for my first interview, your content is really helpful
@Techsithtube
@Techsithtube 6 жыл бұрын
Good luck with your interview. !
@astro-zodiac
@astro-zodiac 2 жыл бұрын
6:10 That's a cool trick to impress your co-workers, If they dont know it 😂😂
@LolowBlazee
@LolowBlazee 6 жыл бұрын
Love those tricky questions, we actually keep learning :)
@sammiliu2524
@sammiliu2524 4 жыл бұрын
Great video, very useful
@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 !
@pavelerokhin1512
@pavelerokhin1512 6 жыл бұрын
There is no inappropriate content in this video, dear KZbin
@surferbum618
@surferbum618 6 жыл бұрын
Thank you for helping strangers! I hope KZbin does right by you and you can keep the videos coming. They're a great help.
@babinicz91
@babinicz91 6 жыл бұрын
Best Interview series!
@shawnmichaelalberto7519
@shawnmichaelalberto7519 Жыл бұрын
@3:26 now I fully understand how styled components work. You are such a good teacher
@momentswithmanisha
@momentswithmanisha 4 жыл бұрын
I learned new things. Thank you clearing my Concept 😇
@DevRaj-tk3kc
@DevRaj-tk3kc 6 жыл бұрын
Nice tricky questions. These are proper genuine content videos.
@jakekim1442
@jakekim1442 6 жыл бұрын
Awesome tutorials man.
@tarekjamil6348
@tarekjamil6348 6 жыл бұрын
Jake Kim Hi
@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.
@ryanlozon5712
@ryanlozon5712 6 жыл бұрын
Please keep up the awesomeness.
@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 KZbin should not harm you.
@RajendraTaradaleBeHappy
@RajendraTaradaleBeHappy 5 жыл бұрын
Thanks for tricky question - didn't aware of this magic
@ParasFtl
@ParasFtl 6 жыл бұрын
This is one of the best channel to advance your JavaScript.
@Toni7926
@Toni7926 7 жыл бұрын
Nice video, keep up the good work! (:
@Techsithtube
@Techsithtube 7 жыл бұрын
Thanks for the support ! )
@theinternetcash
@theinternetcash 6 жыл бұрын
my first javascript interview coming up very soon
@Techsithtube
@Techsithtube 6 жыл бұрын
Good luck!
@ollehbudiak7150
@ollehbudiak7150 5 жыл бұрын
Thanks for your work. console.log(arguments.length); vs console.log([].slice.call(arguments).length);
@SK-ur3hw
@SK-ur3hw 7 жыл бұрын
Great interview questions 👍🏻
@Techsithtube
@Techsithtube 7 жыл бұрын
Thanks for watching ! :)
@njcoutinho1
@njcoutinho1 7 жыл бұрын
Wonderful to learn this. Thank you
@Fikayoz
@Fikayoz 7 жыл бұрын
Thank you so much for this video! I hope this channel grows even larger!
@Techsithtube
@Techsithtube 7 жыл бұрын
Thanks for your support Fikayoz!
@vlad981
@vlad981 7 жыл бұрын
Thanks! Great video! Hope KZbin will change its policy, keep it up please)
@Techsithtube
@Techsithtube 7 жыл бұрын
Thanks for the support ! )
@MrVisheshsingh
@MrVisheshsingh 7 жыл бұрын
Thanks for the video. We all support you for all the hard work you are doing!
@Techsithtube
@Techsithtube 7 жыл бұрын
Thanks for your support! :)
@ernestromen1479
@ernestromen1479 9 ай бұрын
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!
@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!
@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.
@SketchStack
@SketchStack 6 жыл бұрын
Awesome man. Want to see more interview tricky question series. Awesome job.
@devolee8302
@devolee8302 5 жыл бұрын
'Document.body.cotentEditable = "true" ' is super cool !!!
@Techsithtube
@Techsithtube 5 жыл бұрын
Yes first time i saw contentEditable I was blown away. :)
@nancycreeksong9879
@nancycreeksong9879 5 жыл бұрын
Techsith videos have been very useful to me. Thank you.
@kuhim3753
@kuhim3753 5 жыл бұрын
Best KZbin channel for JavaScript interview
@lolmos
@lolmos 4 жыл бұрын
Dude I love the videos you're really helping me and many others on our Dev path
@bogdanbugnar7415
@bogdanbugnar7415 3 жыл бұрын
This is great man! Keep on going!
@ErnestGWilsonII
@ErnestGWilsonII 7 жыл бұрын
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 7 жыл бұрын
Ernest , Thanks you for watching! :)
@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
@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.
@shwetapaliwal2424
@shwetapaliwal2424 5 жыл бұрын
seriously very much needed video for developers
@Techsithtube
@Techsithtube 5 жыл бұрын
Thank you shweta for a nice comment! :)
@karanveersingh6943
@karanveersingh6943 6 жыл бұрын
Grear video! Always putting out worthwhile content😁
@swethas7320
@swethas7320 5 жыл бұрын
Good video to understand JavaScript concepts in depth
@sam123sujeet
@sam123sujeet 5 жыл бұрын
Really like this tricky interview questions series. Keep posting it
@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
@alex_zan
@alex_zan 6 жыл бұрын
Really helpful video! We need more of those on KZbin!
@Techsithtube
@Techsithtube 6 жыл бұрын
I have a plan for more such videos. keep an eye on the channel for that.
@nishanth-saka
@nishanth-saka 2 жыл бұрын
By far the best channel for learners!
@PhotoLightTV
@PhotoLightTV 6 жыл бұрын
techsith, your videos are amazing!
@Mr_BetaMax
@Mr_BetaMax 5 жыл бұрын
I did not know about the contenteditable attribute!! It's awesome
@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 :)
@adamcrap
@adamcrap 6 жыл бұрын
Great content!! I am preparing for an interview in a couple days and your videos are a huge help!!
@Techsithtube
@Techsithtube 6 жыл бұрын
I am glad Adam . thanks for watching!
@shridhargovindaiah
@shridhargovindaiah 6 жыл бұрын
Excellent Video. We support you and we need more educational video from you.
@Techsithtube
@Techsithtube 6 жыл бұрын
Thanks for watching Shridhar!
@kamoroso94
@kamoroso94 6 жыл бұрын
KZbin'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! :)
@Austin-ui8in
@Austin-ui8in 3 жыл бұрын
Thanks for the great video, Techsith!
@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.
@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!
@JB-pl8vj
@JB-pl8vj 4 жыл бұрын
Thank you for taking the time to teach us! Cheers
@Techsithtube
@Techsithtube 4 жыл бұрын
My pleasure!
@andreybindyuk769
@andreybindyuk769 5 жыл бұрын
Quite important and useful tutorial, many thanks!
@balanepalaiyathane9714
@balanepalaiyathane9714 4 жыл бұрын
Very nice and useful one. Techsith really helping the community...
@jeremybissonnette9403
@jeremybissonnette9403 4 жыл бұрын
Super helpful video while Im studying for a job interview
@itsimpl6257
@itsimpl6257 5 жыл бұрын
The reason you cited why the interviewer asks such weird questions are all very correct.
@miroslavspirkoski5623
@miroslavspirkoski5623 6 жыл бұрын
Thanks a lot for this video, you are really unique with this content!
@christmasvillage3652
@christmasvillage3652 5 жыл бұрын
your videos are awesome and KZbin is very discouraging. Keep up the good work sir.
@gouravgirdhar9973
@gouravgirdhar9973 6 жыл бұрын
I'm grateful for all the effort you are putting in which makes learning so much easier. Thanks for all the hardwork
@Techsithtube
@Techsithtube 6 жыл бұрын
Thanks for watching Grourav. I am gladthat it helped!
@p2v515
@p2v515 7 жыл бұрын
Amazing video! Like the job you do, good luck with it hope you stay motivated!!
@Techsithtube
@Techsithtube 7 жыл бұрын
Thanks for the support ! )
@ephdawg3374
@ephdawg3374 6 жыл бұрын
Thanks for your videos, they are always so helpful. Learned some great things from this one !!
@ankitanand6596
@ankitanand6596 6 жыл бұрын
You are doing a great job man... keep doing this..
@aaaaaaa596
@aaaaaaa596 6 жыл бұрын
Always nice content delivered !!!
@aakritigangwal7659
@aakritigangwal7659 7 жыл бұрын
Thankful for good bunch of Interview questions ons JS.
@joyandlove7710
@joyandlove7710 6 жыл бұрын
Thanks for the tips! I hope I am not running into any of the questions in my interviews, but it is so good to know.
@Techsithtube
@Techsithtube 6 жыл бұрын
Its important to know these questions. Most of the times people wont ask such questions but you might one or two people who would ask such silly questions to throw you off.
@otavioaraujo4320
@otavioaraujo4320 2 жыл бұрын
Amazing! The String constructor one was cool haha
@discountmilakya6143
@discountmilakya6143 5 жыл бұрын
Very informative video . it's really help me. Thank You Sir
@sanjaysingh-sy6zu
@sanjaysingh-sy6zu 5 жыл бұрын
Thanks for making this video which helps me understand tricky concepts of JavaScript. Thanks a bunch
@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
@cautioni
@cautioni 4 жыл бұрын
really appreciating the videos, thanks man.
@codewithnacho
@codewithnacho 6 жыл бұрын
Awesome Video! A fun way to practice JS for coding interviews
@Imjaffarkhan
@Imjaffarkhan 5 жыл бұрын
Very well explained. Thanks Sith
@Techsithtube
@Techsithtube 5 жыл бұрын
Thanks for watching Jaffer.
@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. :)
@sanketatmaram
@sanketatmaram 4 жыл бұрын
function a() { console.log(arguments.length); } Above will also work for arguments length.
@debanjanbasu2597
@debanjanbasu2597 6 жыл бұрын
I am just thankful to you from heart for these videos.
@Vyperxgames
@Vyperxgames 5 жыл бұрын
Very helpful input, many thanks
@sufiyan0011able
@sufiyan0011able 5 жыл бұрын
Thanks for making this video. Its a great help for guys like us.
@Techsithtube
@Techsithtube 5 жыл бұрын
Sufiyan, thanks for the comment.
@TheDevLoki
@TheDevLoki 4 жыл бұрын
Your content is great and very informative. Keep up the good work!
@nunosantosdev
@nunosantosdev 5 жыл бұрын
im glad you fixe YT problems for ads...your videos eally helpme a lot thanks👏
@naveenreddydepa8324
@naveenreddydepa8324 6 жыл бұрын
Great video to learn JS tricky interview questions. I felt thrill waiting for each answer of a question
@alon8185
@alon8185 4 жыл бұрын
Thanks! I learned allot in just 21 minutes.
@swapnilsaxena1654
@swapnilsaxena1654 6 жыл бұрын
Really helpful. Appreciated all questions
@CodersGyan
@CodersGyan 4 жыл бұрын
One of the best tutorial :)
@khusbookumari2149
@khusbookumari2149 4 жыл бұрын
your videos are so important for any developer.
@anuranjansrivastav9864
@anuranjansrivastav9864 6 жыл бұрын
Hi, Please elaborate as why arguments[0]() is causing this.length as 2. What makes arguments behave like that.
@rampande5830
@rampande5830 5 жыл бұрын
found tutorial very useful. Learnt new things in JS. Thank you.
@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
@paulav1611
@paulav1611 4 жыл бұрын
Very Helpful! Thank you for taking the time to teach.
Top Tricky JavaScript Interview Questions and Answers
15:42
techsith
Рет қаралды 82 М.
Tricky JavaScript Interview Questions and Answers
16:35
techsith
Рет қаралды 457 М.
Симбу закрыли дома?! 🔒 #симба #симбочка #арти
00:41
Симбочка Пимпочка
Рет қаралды 6 МЛН
Tuna 🍣 ​⁠@patrickzeinali ​⁠@ChefRush
00:48
albert_cancook
Рет қаралды 51 МЛН
If people acted like cats 🙀😹 LeoNata family #shorts
00:22
LeoNata Family
Рет қаралды 36 МЛН
top 10 JavaScript tricks
17:18
techsith
Рет қаралды 19 М.
Javascript Interview Questions and Answers - Dominate Your Next Interview
1:02:33
Monsterlessons Academy
Рет қаралды 74 М.
Top 10 JavaScript Interview Questions ( Part 2 )
13:05
techsith
Рет қаралды 291 М.
Answering tricky JavaScript interview questions
35:16
freeCodeCamp.org
Рет қаралды 68 М.
javaScript promises explained tutorial
13:10
techsith
Рет қаралды 553 М.
How to pass JavaScript interviews. Guide for Junior Developers
21:37
You're Probably Wrong About Rainbows
27:11
Veritasium
Рет қаралды 3,6 МЛН
Симбу закрыли дома?! 🔒 #симба #симбочка #арти
00:41
Симбочка Пимпочка
Рет қаралды 6 МЛН