Tricky JavaScript interview questions and answers

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

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!
@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❤
@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 :-)
@astro-zodiac
@astro-zodiac 2 жыл бұрын
6:10 That's a cool trick to impress your co-workers, If they dont know it 😂😂
@rojiherrera
@rojiherrera 7 жыл бұрын
"This is an INTERVIEW, not a RACE" -techsith ☝️
@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 !
@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! :)
@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! :)
@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!
@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.
@tochukwuibe2139
@tochukwuibe2139 6 жыл бұрын
Getting ready for my first interview, your content is really helpful
@Techsithtube
@Techsithtube 6 жыл бұрын
Good luck with your interview. !
@meetidnani
@meetidnani 7 жыл бұрын
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
@LolowBlazee
@LolowBlazee 6 жыл бұрын
Love those tricky questions, we actually keep learning :)
@sammiliu2524
@sammiliu2524 4 жыл бұрын
Great video, very useful
@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!
@momentswithmanisha
@momentswithmanisha 4 жыл бұрын
I learned new things. Thank you clearing my Concept 😇
@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.
@babinicz91
@babinicz91 6 жыл бұрын
Best Interview series!
@DevRaj-tk3kc
@DevRaj-tk3kc 6 жыл бұрын
Nice tricky questions. These are proper genuine content videos.
@ryanlozon5712
@ryanlozon5712 6 жыл бұрын
Please keep up the awesomeness.
@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!
@RajendraTaradaleBeHappy
@RajendraTaradaleBeHappy 5 жыл бұрын
Thanks for tricky question - didn't aware of this magic
@shawnmichaelalberto7519
@shawnmichaelalberto7519 Жыл бұрын
@3:26 now I fully understand how styled components work. You are such a good teacher
@jakekim1442
@jakekim1442 6 жыл бұрын
Awesome tutorials man.
@tarekjamil6348
@tarekjamil6348 6 жыл бұрын
Jake Kim Hi
@pavelerokhin1512
@pavelerokhin1512 6 жыл бұрын
There is no inappropriate content in this video, dear KZbin
@ollehbudiak7150
@ollehbudiak7150 5 жыл бұрын
Thanks for your work. console.log(arguments.length); vs console.log([].slice.call(arguments).length);
@Toni7926
@Toni7926 7 жыл бұрын
Nice video, keep up the good work! (:
@Techsithtube
@Techsithtube 7 жыл бұрын
Thanks for the support ! )
@nancycreeksong9879
@nancycreeksong9879 5 жыл бұрын
Techsith videos have been very useful to me. Thank you.
@SK-ur3hw
@SK-ur3hw 7 жыл бұрын
Great interview questions 👍🏻
@Techsithtube
@Techsithtube 7 жыл бұрын
Thanks for watching ! :)
@njcoutinho1
@njcoutinho1 7 жыл бұрын
Wonderful to learn this. Thank you
@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.
@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! :)
@theinternetcash
@theinternetcash 6 жыл бұрын
my first javascript interview coming up very soon
@Techsithtube
@Techsithtube 6 жыл бұрын
Good luck!
@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!
@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! :)
@christmasvillage3652
@christmasvillage3652 5 жыл бұрын
your videos are awesome and KZbin is very discouraging. Keep up the good work sir.
@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
@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!
@atmansangeethamani5373
@atmansangeethamani5373 6 жыл бұрын
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.
@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!
@CodersGyan
@CodersGyan 4 жыл бұрын
One of the best tutorial :)
@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.
@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
@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! :)
@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.
@miroslavspirkoski5623
@miroslavspirkoski5623 6 жыл бұрын
Thanks a lot for this video, you are really unique with this content!
@nitinagrawal6637
@nitinagrawal6637 5 жыл бұрын
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.
@lolmos
@lolmos 4 жыл бұрын
Dude I love the videos you're really helping me and many others on our Dev path
@PhotoLightTV
@PhotoLightTV 6 жыл бұрын
techsith, your videos are amazing!
@sanjaysingh-sy6zu
@sanjaysingh-sy6zu 5 жыл бұрын
Thanks for making this video which helps me understand tricky concepts of JavaScript. Thanks a bunch
@ephdawg3374
@ephdawg3374 6 жыл бұрын
Thanks for your videos, they are always so helpful. Learned some great things from this one !!
@ParasFtl
@ParasFtl 6 жыл бұрын
This is one of the best channel to advance your JavaScript.
@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!
@aakritigangwal7659
@aakritigangwal7659 7 жыл бұрын
Thankful for good bunch of Interview questions ons JS.
@rampande5830
@rampande5830 5 жыл бұрын
found tutorial very useful. Learnt new things in JS. Thank you.
@shridhargovindaiah
@shridhargovindaiah 6 жыл бұрын
Excellent Video. We support you and we need more educational video from you.
@Techsithtube
@Techsithtube 6 жыл бұрын
Thanks for watching Shridhar!
@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 KZbin!
@Techsithtube
@Techsithtube 6 жыл бұрын
I have a plan for more such videos. keep an eye on the channel for that.
@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. :)
@SketchStack
@SketchStack 6 жыл бұрын
Awesome man. Want to see more interview tricky question series. Awesome job.
@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
@Michael-hj9fx
@Michael-hj9fx 6 жыл бұрын
This was a very informative video. Thank you for creating it! I'll be sharing this with some of my programmer friends :)
@keshavgupta6549
@keshavgupta6549 3 жыл бұрын
Where are you right now? Did you land at your first job? I am having an interview today.
@6keff
@6keff 7 жыл бұрын
Excellent video!, I didn't knew about content editable property until now. Thanks!
@Techsithtube
@Techsithtube 7 жыл бұрын
yes, its a neat trick.:)
@sufiyan0011able
@sufiyan0011able 5 жыл бұрын
Thanks for making this video. Its a great help for guys like us.
@Techsithtube
@Techsithtube 5 жыл бұрын
Sufiyan, thanks for the comment.
@andreybindyuk769
@andreybindyuk769 5 жыл бұрын
Quite important and useful tutorial, many thanks!
@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.
@anuranjansrivastav9864
@anuranjansrivastav9864 6 жыл бұрын
Hi, Please elaborate as why arguments[0]() is causing this.length as 2. What makes arguments behave like that.
@Mr_BetaMax
@Mr_BetaMax 5 жыл бұрын
I did not know about the contenteditable attribute!! It's awesome
@dikshachavan9075
@dikshachavan9075 6 жыл бұрын
you are great at teaching. very useful examples to understand js
@Techsithtube
@Techsithtube 6 жыл бұрын
Thank you Diksha, Keep on learning!
@alon8185
@alon8185 4 жыл бұрын
Thanks! I learned allot in just 21 minutes.
@shwetapaliwal2424
@shwetapaliwal2424 5 жыл бұрын
seriously very much needed video for developers
@Techsithtube
@Techsithtube 5 жыл бұрын
Thank you shweta for a nice comment! :)
@yiyingw6506
@yiyingw6506 6 жыл бұрын
I really like this series! I learnt a lot from watching these. Thank you!
@Techsithtube
@Techsithtube 6 жыл бұрын
Thanks for watching Yiying! :)
@sistlavenkatesh2993
@sistlavenkatesh2993 4 жыл бұрын
This video is important video for ui developers. Very informative video infact.
@DanielDogeanu
@DanielDogeanu 6 жыл бұрын
That thing with contentEditable blew me away! Awesome trick!
@nunosantosdev
@nunosantosdev 5 жыл бұрын
im glad you fixe YT problems for ads...your videos eally helpme a lot thanks👏
@itsimpl6257
@itsimpl6257 5 жыл бұрын
The reason you cited why the interviewer asks such weird questions are all very correct.
@swethavutukuru
@swethavutukuru 4 жыл бұрын
u have gr8 knowledge on Javascript. I am learning a lot from u. I am looking forward for more technical videos from u.
@debanjanbasu2597
@debanjanbasu2597 6 жыл бұрын
I am just thankful to you from heart for these videos.
@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 :)
@rahulsalvi6623
@rahulsalvi6623 6 жыл бұрын
Really helpful video. Helped me to understand the core concepts.
@harikumargurudu5260
@harikumargurudu5260 7 жыл бұрын
Thank you for your videos. We are with you and please keep on posting videos.
@Techsithtube
@Techsithtube 7 жыл бұрын
Hari, Thank you for your support! :)
@sanketatmaram
@sanketatmaram 4 жыл бұрын
function a() { console.log(arguments.length); } Above will also work for arguments length.
@Imjaffarkhan
@Imjaffarkhan 5 жыл бұрын
Very well explained. Thanks Sith
@Techsithtube
@Techsithtube 5 жыл бұрын
Thanks for watching Jaffer.
@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 ! )
@SiddharthShivhare
@SiddharthShivhare 3 жыл бұрын
This video is so important and you have shared very good questions with valid answers. Thanks a lot
@rajatsrivastava574
@rajatsrivastava574 4 жыл бұрын
The way you explain the JavaScript are really awesome.
@Techsithtube
@Techsithtube 4 жыл бұрын
Glad you think so! Thanks for watching!
@AAA-hv7nr
@AAA-hv7nr 6 жыл бұрын
I really appreciate these videos and the content is totally PG.
@Techsithtube
@Techsithtube 6 жыл бұрын
Thanks for your support :)
@bogdanbugnar7415
@bogdanbugnar7415 3 жыл бұрын
This is great man! Keep on going!
@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
@naveenreddydepa8324
@naveenreddydepa8324 6 жыл бұрын
Great video to learn JS tricky interview questions. I felt thrill waiting for each answer of a question
@AradhanaSinghAdecentgirl
@AradhanaSinghAdecentgirl 6 жыл бұрын
Thank you So much. It really helps.You are doing great :)
@tomlemanh5506
@tomlemanh5506 6 жыл бұрын
.... just leaving a comment ;) Great contents man. Keep up the good work! U got a new subscriber
@Techsithtube
@Techsithtube 6 жыл бұрын
Thank you for subscribing :)
@swapnilsaxena1654
@swapnilsaxena1654 6 жыл бұрын
Really helpful. Appreciated all questions
@MrCooldude03
@MrCooldude03 7 жыл бұрын
You know finest art of teaching.. A big fan of yours.. learnt a lot from you.. you deserve a like and a comment.. will be there for support you always, if you keep on posting video like this. Thank you Sir
@Techsithtube
@Techsithtube 7 жыл бұрын
Thank you for your support! :)
@sandeepreddy1866
@sandeepreddy1866 5 жыл бұрын
Good tricky questions. Thanks for your effort in uploading such videos
@Techsithtube
@Techsithtube 5 жыл бұрын
Thanks sandeep for a nice comment :)
Tricky JavaScript Interview Questions and Answers
16:35
techsith
Рет қаралды 457 М.
Top Tricky JavaScript Interview Questions and Answers
15:42
techsith
Рет қаралды 83 М.
Turn Off the Vacum And Sit Back and Laugh 🤣
00:34
SKITSFUL
Рет қаралды 11 МЛН
Арыстанның айқасы, Тәуіржанның шайқасы!
25:51
QosLike / ҚосЛайк / Косылайық
Рет қаралды 548 М.
Top 10 JavaScript Interview Questions ( Part 2 )
13:05
techsith
Рет қаралды 291 М.
How to pass JavaScript interviews. Guide for Junior Developers
21:37
JavaScript Interview questions everyone gets wrong
6:40
Catherine Li
Рет қаралды 31 М.
Why You Shouldn't Nest Your Code
8:30
CodeAesthetic
Рет қаралды 2,8 МЛН
10 JavaScript Interview Questions You HAVE TO KNOW
13:41
James Q Quick
Рет қаралды 73 М.
NodeJs Interview | NodeJs Interview Questions | NodeJs Questions
40:33
Turn Off the Vacum And Sit Back and Laugh 🤣
00:34
SKITSFUL
Рет қаралды 11 МЛН