Thanks for watching ! :) Thanks for the support ! )
@JLO727133 жыл бұрын
Very helpful, your you defeated the Google beast
@ArjunKesava5 жыл бұрын
To print the length of arguments (17:33), we can simply write: return arguments.length; inside the function instead of using Slice method.
@Techsithtube5 жыл бұрын
That is true Arjun. Slice helps to convert argument to an array and then you can use other array features like join() and things.
@GabrielVasile5 жыл бұрын
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;
@zajebojca7 жыл бұрын
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'.
@cassavandumbi27347 жыл бұрын
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))
@dand82826 жыл бұрын
you can count formal parameters (aka "required arguments") with function.length, not arguments.length, which is a count of what's passed.
@kamoroso946 жыл бұрын
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.
@ravikumargrandhi63156 жыл бұрын
output will be 4
@ravikumargrandhi63156 жыл бұрын
x(.....) function will return how many arguments you are passing while calling x(....).
@vinikett91144 жыл бұрын
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!
@robertmasters55786 жыл бұрын
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 :-)
@rojiherrera7 жыл бұрын
"This is an INTERVIEW, not a RACE" -techsith ☝️
@subratkumar59017 жыл бұрын
I am following you since couple of months.. You are champ man. Keep it up.. 1000 likes from my side
@Techsithtube7 жыл бұрын
Hi Subrat, thanks for watching! :)
@nintichance6 жыл бұрын
I've been watching your videos over the past few days and they've been extremely helpful and informative!
@Techsithtube6 жыл бұрын
Thanks for watching Ninti! :)
@meetidnani6 жыл бұрын
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 ......
@Techsithtube6 жыл бұрын
yes you could simply use arguments.length
@xuelianwang53005 жыл бұрын
Very interesting JavaScript question! Thank you for sharing!! Thank you for taking time and effort to make so many nice JavaScript videos!
@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❤
@tochukwuibe21396 жыл бұрын
Getting ready for my first interview, your content is really helpful
@Techsithtube6 жыл бұрын
Good luck with your interview. !
@astro-zodiac2 жыл бұрын
6:10 That's a cool trick to impress your co-workers, If they dont know it 😂😂
@LolowBlazee6 жыл бұрын
Love those tricky questions, we actually keep learning :)
@sammiliu25244 жыл бұрын
Great video, very useful
@vladanng6 жыл бұрын
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.
@Techsithtube6 жыл бұрын
Thanks for watching and welcome back !
@pavelerokhin15126 жыл бұрын
There is no inappropriate content in this video, dear KZbin
@surferbum6186 жыл бұрын
Thank you for helping strangers! I hope KZbin does right by you and you can keep the videos coming. They're a great help.
@babinicz916 жыл бұрын
Best Interview series!
@shawnmichaelalberto7519 Жыл бұрын
@3:26 now I fully understand how styled components work. You are such a good teacher
@momentswithmanisha4 жыл бұрын
I learned new things. Thank you clearing my Concept 😇
@DevRaj-tk3kc6 жыл бұрын
Nice tricky questions. These are proper genuine content videos.
@jakekim14426 жыл бұрын
Awesome tutorials man.
@tarekjamil63486 жыл бұрын
Jake Kim Hi
@SlayBellsMusic2 жыл бұрын
I'm finding all your interview videos helpful. I have my first ever on Monday and feel much more confident going in.
@ryanlozon57126 жыл бұрын
Please keep up the awesomeness.
@pmahesh67894 жыл бұрын
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.
@RajendraTaradaleBeHappy5 жыл бұрын
Thanks for tricky question - didn't aware of this magic
@ParasFtl6 жыл бұрын
This is one of the best channel to advance your JavaScript.
@Toni79267 жыл бұрын
Nice video, keep up the good work! (:
@Techsithtube7 жыл бұрын
Thanks for the support ! )
@theinternetcash6 жыл бұрын
my first javascript interview coming up very soon
@Techsithtube6 жыл бұрын
Good luck!
@ollehbudiak71505 жыл бұрын
Thanks for your work. console.log(arguments.length); vs console.log([].slice.call(arguments).length);
@SK-ur3hw7 жыл бұрын
Great interview questions 👍🏻
@Techsithtube7 жыл бұрын
Thanks for watching ! :)
@njcoutinho17 жыл бұрын
Wonderful to learn this. Thank you
@Fikayoz7 жыл бұрын
Thank you so much for this video! I hope this channel grows even larger!
@Techsithtube7 жыл бұрын
Thanks for your support Fikayoz!
@vlad9817 жыл бұрын
Thanks! Great video! Hope KZbin will change its policy, keep it up please)
@Techsithtube7 жыл бұрын
Thanks for the support ! )
@MrVisheshsingh7 жыл бұрын
Thanks for the video. We all support you for all the hard work you are doing!
@Techsithtube7 жыл бұрын
Thanks for your support! :)
@ernestromen14799 ай бұрын
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!
@danielhughes37583 жыл бұрын
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
@Techsithtube3 жыл бұрын
Glad it was helpful!
@ejikeezekwunem41622 жыл бұрын
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.
@SketchStack6 жыл бұрын
Awesome man. Want to see more interview tricky question series. Awesome job.
@devolee83025 жыл бұрын
'Document.body.cotentEditable = "true" ' is super cool !!!
@Techsithtube5 жыл бұрын
Yes first time i saw contentEditable I was blown away. :)
@nancycreeksong98795 жыл бұрын
Techsith videos have been very useful to me. Thank you.
@kuhim37535 жыл бұрын
Best KZbin channel for JavaScript interview
@lolmos4 жыл бұрын
Dude I love the videos you're really helping me and many others on our Dev path
@bogdanbugnar74153 жыл бұрын
This is great man! Keep on going!
@ErnestGWilsonII7 жыл бұрын
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!
@Techsithtube7 жыл бұрын
Ernest , Thanks you for watching! :)
@MrErererererr5 жыл бұрын
Thank you. I have my interview tomorrow and if I pass it, it thanks to you.
@jcmarquezgalvis5 жыл бұрын
Did you pass?
@ra58984 жыл бұрын
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
@nandac28205 жыл бұрын
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.
@shwetapaliwal24245 жыл бұрын
seriously very much needed video for developers
@Techsithtube5 жыл бұрын
Thank you shweta for a nice comment! :)
@karanveersingh69436 жыл бұрын
Grear video! Always putting out worthwhile content😁
@swethas73205 жыл бұрын
Good video to understand JavaScript concepts in depth
@sam123sujeet5 жыл бұрын
Really like this tricky interview questions series. Keep posting it
@ozzyfromspace2 жыл бұрын
@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_zan6 жыл бұрын
Really helpful video! We need more of those on KZbin!
@Techsithtube6 жыл бұрын
I have a plan for more such videos. keep an eye on the channel for that.
@nishanth-saka2 жыл бұрын
By far the best channel for learners!
@PhotoLightTV6 жыл бұрын
techsith, your videos are amazing!
@Mr_BetaMax5 жыл бұрын
I did not know about the contenteditable attribute!! It's awesome
@glendysfilsinger54736 жыл бұрын
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 :)
@adamcrap6 жыл бұрын
Great content!! I am preparing for an interview in a couple days and your videos are a huge help!!
@Techsithtube6 жыл бұрын
I am glad Adam . thanks for watching!
@shridhargovindaiah6 жыл бұрын
Excellent Video. We support you and we need more educational video from you.
@Techsithtube6 жыл бұрын
Thanks for watching Shridhar!
@kamoroso946 жыл бұрын
KZbin's algorithm is so stupid. Your videos are good quality and don't deserve to be demonitized.
@Techsithtube6 жыл бұрын
Thanks for the support Kyle! :)
@Austin-ui8in3 жыл бұрын
Thanks for the great video, Techsith!
@nitinagrawal66374 жыл бұрын
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.
@ryanmfahey16 жыл бұрын
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).
@Techsithtube6 жыл бұрын
Thank you for watching Ryan. Good luck with your interviews!
@JB-pl8vj4 жыл бұрын
Thank you for taking the time to teach us! Cheers
@Techsithtube4 жыл бұрын
My pleasure!
@andreybindyuk7695 жыл бұрын
Quite important and useful tutorial, many thanks!
@balanepalaiyathane97144 жыл бұрын
Very nice and useful one. Techsith really helping the community...
@jeremybissonnette94034 жыл бұрын
Super helpful video while Im studying for a job interview
@itsimpl62575 жыл бұрын
The reason you cited why the interviewer asks such weird questions are all very correct.
@miroslavspirkoski56236 жыл бұрын
Thanks a lot for this video, you are really unique with this content!
@christmasvillage36525 жыл бұрын
your videos are awesome and KZbin is very discouraging. Keep up the good work sir.
@gouravgirdhar99736 жыл бұрын
I'm grateful for all the effort you are putting in which makes learning so much easier. Thanks for all the hardwork
@Techsithtube6 жыл бұрын
Thanks for watching Grourav. I am gladthat it helped!
@p2v5157 жыл бұрын
Amazing video! Like the job you do, good luck with it hope you stay motivated!!
@Techsithtube7 жыл бұрын
Thanks for the support ! )
@ephdawg33746 жыл бұрын
Thanks for your videos, they are always so helpful. Learned some great things from this one !!
@ankitanand65966 жыл бұрын
You are doing a great job man... keep doing this..
@aaaaaaa5966 жыл бұрын
Always nice content delivered !!!
@aakritigangwal76597 жыл бұрын
Thankful for good bunch of Interview questions ons JS.
@joyandlove77106 жыл бұрын
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.
@Techsithtube6 жыл бұрын
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.
@otavioaraujo43202 жыл бұрын
Amazing! The String constructor one was cool haha
@discountmilakya61435 жыл бұрын
Very informative video . it's really help me. Thank You Sir
@sanjaysingh-sy6zu5 жыл бұрын
Thanks for making this video which helps me understand tricky concepts of JavaScript. Thanks a bunch
@RahulPandey0345 жыл бұрын
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
@cautioni4 жыл бұрын
really appreciating the videos, thanks man.
@codewithnacho6 жыл бұрын
Awesome Video! A fun way to practice JS for coding interviews
@Imjaffarkhan5 жыл бұрын
Very well explained. Thanks Sith
@Techsithtube5 жыл бұрын
Thanks for watching Jaffer.
@kurisuisaway6 жыл бұрын
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!
@Techsithtube6 жыл бұрын
Good luck with your interview Andrea. :)
@sanketatmaram4 жыл бұрын
function a() { console.log(arguments.length); } Above will also work for arguments length.
@debanjanbasu25976 жыл бұрын
I am just thankful to you from heart for these videos.
@Vyperxgames5 жыл бұрын
Very helpful input, many thanks
@sufiyan0011able5 жыл бұрын
Thanks for making this video. Its a great help for guys like us.
@Techsithtube5 жыл бұрын
Sufiyan, thanks for the comment.
@TheDevLoki4 жыл бұрын
Your content is great and very informative. Keep up the good work!
@nunosantosdev5 жыл бұрын
im glad you fixe YT problems for ads...your videos eally helpme a lot thanks👏
@naveenreddydepa83246 жыл бұрын
Great video to learn JS tricky interview questions. I felt thrill waiting for each answer of a question
@alon81854 жыл бұрын
Thanks! I learned allot in just 21 minutes.
@swapnilsaxena16546 жыл бұрын
Really helpful. Appreciated all questions
@CodersGyan4 жыл бұрын
One of the best tutorial :)
@khusbookumari21494 жыл бұрын
your videos are so important for any developer.
@anuranjansrivastav98646 жыл бұрын
Hi, Please elaborate as why arguments[0]() is causing this.length as 2. What makes arguments behave like that.
@rampande58305 жыл бұрын
found tutorial very useful. Learnt new things in JS. Thank you.
@indianhikinggirl5 жыл бұрын
Please come up with more videos of this type. It would be very helpful for interviews. Thanks
@Techsithtube5 жыл бұрын
I have a whole series of such videos. do check it out the playlist
@paulav16114 жыл бұрын
Very Helpful! Thank you for taking the time to teach.