Тёмный

Tricky JavaScript interview questions and answers 

techsith
Подписаться 147 тыс.
Просмотров 133 тыс.
50% 1

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.
*

Опубликовано:

 

26 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 1,1 тыс.   
@rojiherrera
@rojiherrera 6 лет назад
"This is an INTERVIEW, not a RACE" -techsith ☝️
@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 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(....).
@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!
@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
@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❤
@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.
@kamoroso94
@kamoroso94 6 лет назад
RU-vid'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! :)
@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 :-)
@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! :)
@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! :)
@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
@ernestromen1479
@ernestromen1479 6 месяцев назад
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!
@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 RU-vid should not harm you.
@tochukwuibe2139
@tochukwuibe2139 5 лет назад
Getting ready for my first interview, your content is really helpful
@Techsithtube
@Techsithtube 5 лет назад
Good luck with your interview. !
@itsimpl6257
@itsimpl6257 5 лет назад
The reason you cited why the interviewer asks such weird questions are all very correct.
@pavelerokhin1512
@pavelerokhin1512 6 лет назад
There is no inappropriate content in this video, dear RU-vid
@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
@momentswithmanisha
@momentswithmanisha 4 года назад
I learned new things. Thank you clearing my Concept 😇
@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 !
@babinicz91
@babinicz91 6 лет назад
Best Interview series!
@yakirifrah
@yakirifrah 5 лет назад
Thanks for making this video which helps me understand tricky concepts of JavaScript. Thanks a bunch
@RajendraTaradaleBeHappy
@RajendraTaradaleBeHappy 5 лет назад
Thanks for tricky question - didn't aware of this magic
@ParasFtl
@ParasFtl 5 лет назад
This is one of the best channel to advance your JavaScript.
@ryanlozon5712
@ryanlozon5712 6 лет назад
Please keep up the awesomeness.
@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
@shwetapaliwal2424
@shwetapaliwal2424 5 лет назад
seriously very much needed video for developers
@Techsithtube
@Techsithtube 5 лет назад
Thank you shweta for a nice comment! :)
@surferbum618
@surferbum618 6 лет назад
Thank you for helping strangers! I hope RU-vid does right by you and you can keep the videos coming. They're a great help.
@theinternetcash
@theinternetcash 5 лет назад
my first javascript interview coming up very soon
@Techsithtube
@Techsithtube 5 лет назад
Good luck!
@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! :)
@SK-ur3hw
@SK-ur3hw 6 лет назад
Great interview questions 👍🏻
@Techsithtube
@Techsithtube 6 лет назад
Thanks for watching ! :)
@njcoutinho1
@njcoutinho1 6 лет назад
Wonderful to learn this. Thank you
@sanketatmaram
@sanketatmaram 4 года назад
function a() { console.log(arguments.length); } Above will also work for arguments length.
@Toni7926
@Toni7926 6 лет назад
Nice video, keep up the good work! (:
@Techsithtube
@Techsithtube 6 лет назад
Thanks for the support ! )
@otavioaraujo4320
@otavioaraujo4320 2 года назад
Amazing! The String constructor one was cool haha
@vlad981
@vlad981 6 лет назад
Thanks! Great video! Hope RU-vid will change its policy, keep it up please)
@Techsithtube
@Techsithtube 6 лет назад
Thanks for the support ! )
@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; }
@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.
@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.
@Mr_BetaMax
@Mr_BetaMax 5 лет назад
I did not know about the contenteditable attribute!! It's awesome
@jomesias
@jomesias 4 года назад
I’m just here to tell youtube this video is important!!
@Techsithtube
@Techsithtube 4 года назад
Thanks for the comment buddy!
@sistlavenkatesh2993
@sistlavenkatesh2993 3 года назад
This video is important video for ui developers. Very informative video infact.
@sufiyan0011able
@sufiyan0011able 5 лет назад
Thanks for making this video. Its a great help for guys like us.
@Techsithtube
@Techsithtube 5 лет назад
Sufiyan, thanks for the comment.
@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
@jeremybissonnette9403
@jeremybissonnette9403 3 года назад
Super helpful video while Im studying for a job interview
@AB-tx7eh
@AB-tx7eh Год назад
5 years later still a great content ✨
@devolee8302
@devolee8302 5 лет назад
'Document.body.cotentEditable = "true" ' is super cool !!!
@Techsithtube
@Techsithtube 5 лет назад
Yes first time i saw contentEditable I was blown away. :)
@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!
@christmasvillage3652
@christmasvillage3652 5 лет назад
your videos are awesome and RU-vid is very discouraging. Keep up the good work sir.
@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.
@rajatsrivastava574
@rajatsrivastava574 4 года назад
The way you explain the JavaScript are really awesome.
@Techsithtube
@Techsithtube 4 года назад
Glad you think so! Thanks for watching!
@007souravray
@007souravray 3 года назад
this video is important for JavaScript developers !!
@Techsithtube
@Techsithtube 3 года назад
Thanks for watching Sourav!
@DevRaj-tk3kc
@DevRaj-tk3kc 6 лет назад
Nice tricky questions. These are proper genuine content videos.
@alex_zan
@alex_zan 6 лет назад
Really helpful video! We need more of those on RU-vid!
@Techsithtube
@Techsithtube 6 лет назад
I have a plan for more such videos. keep an eye on the channel for that.
@kuhim3753
@kuhim3753 4 года назад
Best RU-vid channel for JavaScript interview
@dikshachavan9075
@dikshachavan9075 5 лет назад
you are great at teaching. very useful examples to understand js
@Techsithtube
@Techsithtube 5 лет назад
Thank you Diksha, Keep on learning!
@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
@karanveersingh6943
@karanveersingh6943 6 лет назад
Grear video! Always putting out worthwhile content😁
@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!
@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!
@6keff
@6keff 6 лет назад
Excellent video!, I didn't knew about content editable property until now. Thanks!
@Techsithtube
@Techsithtube 6 лет назад
yes, its a neat trick.:)
@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.
@SadSadGuru
@SadSadGuru 4 года назад
Come on youtube this is an educational channel, please remove restrictions.
@discountmilakya6143
@discountmilakya6143 4 года назад
Very informative video . it's really help me. Thank You Sir
@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!
@nancycreeksong9879
@nancycreeksong9879 5 лет назад
Techsith videos have been very useful to me. Thank you.
@alzz0
@alzz0 5 лет назад
Love yours videos tech sith
@bogdanbugnar7415
@bogdanbugnar7415 3 года назад
This is great man! Keep on going!
@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.
@khusbookumari2149
@khusbookumari2149 4 года назад
your videos are so important for any developer.
@funcomedy2
@funcomedy2 10 месяцев назад
Very interesting JavaScript question! Thank you for sharing!!
@Austin-ui8in
@Austin-ui8in 3 года назад
Thanks for the great video, Techsith!
@nitingais5187
@nitingais5187 4 года назад
This is very helpful to understand JavaScript internal technical execution and it's improve my knowledge
@Imjaffarkhan
@Imjaffarkhan 5 лет назад
Very well explained. Thanks Sith
@Techsithtube
@Techsithtube 5 лет назад
Thanks for watching Jaffer.
@JB-pl8vj
@JB-pl8vj 4 года назад
Thank you for taking the time to teach us! Cheers
@Techsithtube
@Techsithtube 4 года назад
My pleasure!
@slammgucci
@slammgucci Год назад
/ It is not possible to determine the total number of arguments without using any loops or iterative constructs. In order // to count the total number of arguments, you will need to use some form of loop to iterate over the arguments and increment // a counter for each one. // In JavaScript, you can access the arguments passed to a function using the arguments object, which is an array-like object that // contains the values of the arguments. You can use a for loop to iterate over the arguments object and count the number of arguments. Alternatively, you can use the Array.prototype.length property to get the number of elements in the arguments object.
@friendlydhaba4689
@friendlydhaba4689 4 года назад
All the videos are career-boosting!!!
@Techsithtube
@Techsithtube 4 года назад
Glad you fee that way. Thanks for the support.
@H.N7
@H.N7 2 года назад
An easier solution for printing out length of arguments passed to a function is to just use const x = (...args) => console.log(args.length);
@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.
@balanepalaiyathane9714
@balanepalaiyathane9714 4 года назад
Very nice and useful one. Techsith really helping the community...
@vaseafrolov68
@vaseafrolov68 6 лет назад
Thanks for this video, and thanks youtube for not blocking it :-)
@aakritigangwal7659
@aakritigangwal7659 6 лет назад
Thankful for good bunch of Interview questions ons JS.
@lolmos
@lolmos 3 года назад
Dude I love the videos you're really helping me and many others on our Dev path
@name.iz.blurryface
@name.iz.blurryface 6 лет назад
youtube, don't block ads on this guys videos.
@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! :)
@cautioni
@cautioni 4 года назад
really appreciating the videos, thanks man.
@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!
@daltoncepheus
@daltoncepheus 6 лет назад
Techsith is really good for JS developers
@1997jugulator
@1997jugulator 3 года назад
arguments is ArrayLike, so .length is available without magic with array object and borrowing function. But most of questions quite interesting,
@nishanth-saka
@nishanth-saka 2 года назад
By far the best channel for learners!
@SebastianWeszler
@SebastianWeszler 6 лет назад
Thanks for this video, it helped me understand JS better
@michealjunior511
@michealjunior511 3 года назад
This is important for JS developer love it
@atnguyenthanh3108
@atnguyenthanh3108 6 лет назад
Useful for everyone who prepare for interview process
@Vyperxgames
@Vyperxgames 5 лет назад
Very helpful input, many thanks
@sam123sujeet
@sam123sujeet 5 лет назад
Really like this tricky interview questions series. Keep posting it
@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 :)
@ephdawg3374
@ephdawg3374 6 лет назад
Thanks for your videos, they are always so helpful. Learned some great things from this one !!
@PhotoLightTV
@PhotoLightTV 6 лет назад
techsith, your videos are amazing!
Далее
А Вы за пластику?
00:31
Просмотров 12 тыс.
Tricky JavaScript Interview Questions and Answers
16:35
Answering tricky JavaScript interview questions
35:16
JavaScript Interview questions everyone gets wrong
6:40
Being Competent With Coding Is More Fun
11:13
Просмотров 78 тыс.
Top Tricky JavaScript Interview Questions and Answers
15:42
top 10 JavaScript tricks
17:18
Просмотров 19 тыс.