Tricky JavaScript interview questions and answers

แชร์
ฝัง
  • เผยแพร่เมื่อ 3 ธ.ค. 2017
  • 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.1K

  • @vinodhkumar457
    @vinodhkumar457 6 ปีที่แล้ว +82

    This one is important for JS developers.

    • @Techsithtube
      @Techsithtube  6 ปีที่แล้ว +6

      Thanks for watching ! :) Thanks for the support ! )

    • @JLO72713
      @JLO72713 3 ปีที่แล้ว

      Very helpful, your you defeated the Google beast

  • @vinikett9114
    @vinikett9114 4 ปีที่แล้ว +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!

  • @surferbum618
    @surferbum618 6 ปีที่แล้ว

    Thank you for helping strangers! I hope TH-cam does right by you and you can keep the videos coming. They're a great help.

  • @robertmasters5578
    @robertmasters5578 6 ปีที่แล้ว +4

    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 :-)

  • @xuelianwang5300
    @xuelianwang5300 5 ปีที่แล้ว +5

    Very interesting JavaScript question! Thank you for sharing!! Thank you for taking time and effort to make so many nice JavaScript videos!

  • @zajebojca
    @zajebojca 6 ปีที่แล้ว +37

    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 ปีที่แล้ว +1

      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 ปีที่แล้ว +2

      you can count formal parameters (aka "required arguments") with function.length, not arguments.length, which is a count of what's passed.

    • @kamoroso94
      @kamoroso94 5 ปีที่แล้ว +1

      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 ปีที่แล้ว +1

      x(.....) function will return how many arguments you are passing while calling x(....).

  • @vladanng
    @vladanng 6 ปีที่แล้ว +1

    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 ปีที่แล้ว +1

      Thanks for watching and welcome back !

  • @nintichance
    @nintichance 6 ปีที่แล้ว +4

    I've been watching your videos over the past few days and they've been extremely helpful and informative!

    • @Techsithtube
      @Techsithtube  6 ปีที่แล้ว +1

      Thanks for watching Ninti! :)

  • @GabrielVasile
    @GabrielVasile 5 ปีที่แล้ว +4

    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;

  • @rojiherrera
    @rojiherrera 6 ปีที่แล้ว +21

    "This is an INTERVIEW, not a RACE" -techsith ☝️

  • @SketchStack
    @SketchStack 6 ปีที่แล้ว

    Awesome man. Want to see more interview tricky question series. Awesome job.

  • @sadunozer2241
    @sadunozer2241 11 หลายเดือนก่อน

    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❤

  • @LolowBlazee
    @LolowBlazee 6 ปีที่แล้ว +8

    Love those tricky questions, we actually keep learning :)

    • @sammiliu2524
      @sammiliu2524 4 ปีที่แล้ว

      Great video, very useful

  • @ArjunKesava
    @ArjunKesava 5 ปีที่แล้ว +4

    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 ปีที่แล้ว +1

      That is true Arjun. Slice helps to convert argument to an array and then you can use other array features like join() and things.

  • @findachin
    @findachin 4 ปีที่แล้ว +1

    This was a very informative video. Thank you for creating it! I'll be sharing this with some of my programmer friends :)

  • @miroslavspirkoski5623
    @miroslavspirkoski5623 5 ปีที่แล้ว +2

    Thanks a lot for this video, you are really unique with this content!

  • @babinicz91
    @babinicz91 6 ปีที่แล้ว +4

    Best Interview series!

  • @tochukwuibe2139
    @tochukwuibe2139 5 ปีที่แล้ว +3

    Getting ready for my first interview, your content is really helpful

    • @Techsithtube
      @Techsithtube  5 ปีที่แล้ว +1

      Good luck with your interview. !

  • @sam123sujeet
    @sam123sujeet 4 ปีที่แล้ว +1

    Really like this tricky interview questions series. Keep posting it

  • @ephdawg3374
    @ephdawg3374 6 ปีที่แล้ว +1

    Thanks for your videos, they are always so helpful. Learned some great things from this one !!

  • @ryanlozon5712
    @ryanlozon5712 6 ปีที่แล้ว +7

    Please keep up the awesomeness.

  • @MylesGmail
    @MylesGmail 5 ปีที่แล้ว +3

    I love ur videos, thx!!!

  • @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!

  • @ErnestGWilsonII
    @ErnestGWilsonII 6 ปีที่แล้ว +1

    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! :)

  • @momentswithmanisha
    @momentswithmanisha 4 ปีที่แล้ว +3

    I learned new things. Thank you clearing my Concept 😇

  • @Toni7926
    @Toni7926 6 ปีที่แล้ว +3

    Nice video, keep up the good work! (:

    • @Techsithtube
      @Techsithtube  6 ปีที่แล้ว

      Thanks for the support ! )

  • @PhotoLightTV
    @PhotoLightTV 6 ปีที่แล้ว +2

    techsith, your videos are amazing!

  • @lolmos
    @lolmos 3 ปีที่แล้ว

    Dude I love the videos you're really helping me and many others on our Dev path

  • @RajendraTaradaleBeHappy
    @RajendraTaradaleBeHappy 5 ปีที่แล้ว +3

    Thanks for tricky question - didn't aware of this magic

  • @jakekim1442
    @jakekim1442 6 ปีที่แล้ว +3

    Awesome tutorials man.

  • @aakritigangwal7659
    @aakritigangwal7659 6 ปีที่แล้ว +2

    Thankful for good bunch of Interview questions ons JS.

  • @astro-zodiac
    @astro-zodiac ปีที่แล้ว +2

    6:10
    That's a cool trick to impress your co-workers,
    If they dont know it 😂😂

  • @SK-ur3hw
    @SK-ur3hw 6 ปีที่แล้ว +5

    Great interview questions 👍🏻

    • @Techsithtube
      @Techsithtube  6 ปีที่แล้ว

      Thanks for watching ! :)

    • @njcoutinho1
      @njcoutinho1 6 ปีที่แล้ว

      Wonderful to learn this. Thank you

  • @vlad981
    @vlad981 6 ปีที่แล้ว +4

    Thanks! Great video!
    Hope TH-cam will change its policy, keep it up please)

    • @Techsithtube
      @Techsithtube  6 ปีที่แล้ว

      Thanks for the support ! )

  • @bryanbanda
    @bryanbanda 6 ปีที่แล้ว +1

    Thanks for the video, quite informative!

  • @pavelerokhin1512
    @pavelerokhin1512 6 ปีที่แล้ว +22

    There is no inappropriate content in this video, dear TH-cam

  • @theinternetcash
    @theinternetcash 5 ปีที่แล้ว +3

    my first javascript interview coming up very soon

  • @nancycreeksong9879
    @nancycreeksong9879 5 ปีที่แล้ว +2

    Techsith videos have been very useful to me. Thank you.

  • @AradhanaSinghAdecentgirl
    @AradhanaSinghAdecentgirl 6 ปีที่แล้ว +2

    Thank you So much. It really helps.You are doing great :)

  • @danielhughes3758
    @danielhughes3758 3 ปีที่แล้ว +1

    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

  • @DevRaj-tk3kc
    @DevRaj-tk3kc 6 ปีที่แล้ว +1

    Nice tricky questions. These are proper genuine content videos.

  • @bogdanbugnar7415
    @bogdanbugnar7415 3 ปีที่แล้ว

    This is great man! Keep on going!

  • @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 TH-cam should not harm you.

  • @TheDevLoki
    @TheDevLoki 4 ปีที่แล้ว

    Your content is great and very informative.
    Keep up the good work!

  • @LawZist
    @LawZist 6 ปีที่แล้ว +1

    Great as always!

  • @paulav1611
    @paulav1611 4 ปีที่แล้ว

    Very Helpful! Thank you for taking the time to teach.

  • @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.

  • @Mr-cohen
    @Mr-cohen 6 ปีที่แล้ว

    great video! You have great content every video.. thank you for that..looking forward to the next video..
    some of the questions really hard,but I learn from them.

  • @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 :)

  • @karanveersingh6943
    @karanveersingh6943 5 ปีที่แล้ว

    Grear video! Always putting out worthwhile content😁

  • @fahadkheratker7071
    @fahadkheratker7071 6 ปีที่แล้ว

    Great video. Helped a lot. Keep up the good work :)

  • @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! :)

  • @rahulsalvi6623
    @rahulsalvi6623 6 ปีที่แล้ว +1

    Really helpful video. Helped me to understand the core concepts.

  • @superbee1970
    @superbee1970 5 ปีที่แล้ว +1

    Definitely some tricky coding questions here! Thnx!

  • @Austin-ui8in
    @Austin-ui8in 3 ปีที่แล้ว

    Thanks for the great video, Techsith!

  • @jamesonvparker
    @jamesonvparker 5 ปีที่แล้ว

    Thanks for the great videos. They are very helpful!

  • @yiyingw6506
    @yiyingw6506 6 ปีที่แล้ว

    I really like this series! I learnt a lot from watching these. Thank you!

    • @Techsithtube
      @Techsithtube  6 ปีที่แล้ว

      Thanks for watching Yiying! :)

  • @nigelthomas1465
    @nigelthomas1465 6 ปีที่แล้ว

    Thanks for sharing! Keep up the great work!!! Nigel

  • @aaaaaaa596
    @aaaaaaa596 5 ปีที่แล้ว

    Always nice content delivered !!!

  • @zenkithao
    @zenkithao 6 ปีที่แล้ว

    great stuff man keep it up!

  • @yamfrich4353
    @yamfrich4353 4 ปีที่แล้ว

    Thanks for your content! I love star wars btw hehe keep it up!

  • @debanjanbasu2597
    @debanjanbasu2597 6 ปีที่แล้ว

    I am just thankful to you from heart for these videos.

  • @vzsshadow3141
    @vzsshadow3141 5 ปีที่แล้ว +1

    thank you for videos, i enjoyed it :) very nice tricky questions :)

  • @codewithnacho
    @codewithnacho 6 ปีที่แล้ว

    Awesome Video! A fun way to practice JS for coding interviews

  • @otavioaraujo4320
    @otavioaraujo4320 2 ปีที่แล้ว

    Amazing! The String constructor one was cool haha

  • @christmasvillage3652
    @christmasvillage3652 5 ปีที่แล้ว +2

    your videos are awesome and TH-cam is very discouraging. Keep up the good work sir.

  • @naveenreddydepa8324
    @naveenreddydepa8324 6 ปีที่แล้ว

    Great video to learn JS tricky interview questions. I felt thrill waiting for each answer of a question

  • @cautioni
    @cautioni 3 ปีที่แล้ว

    really appreciating the videos, thanks man.

  • @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!

  • @amruthsar
    @amruthsar 3 ปีที่แล้ว

    Love this video and its content. Thank you for making it 😄

  • @danko95bgd
    @danko95bgd 6 ปีที่แล้ว

    great stuff as always!

  • @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.

  • @yakirifrah
    @yakirifrah 4 ปีที่แล้ว +1

    Thanks for making this video which helps me understand tricky concepts of JavaScript. Thanks a bunch

  • @swethas7320
    @swethas7320 5 ปีที่แล้ว +2

    Good video to understand JavaScript concepts in depth

  • @sureshmg6786
    @sureshmg6786 4 ปีที่แล้ว

    Wow, those are really tricky questions, and helpful video. Thanks!!

  • @rajivkumar2578
    @rajivkumar2578 5 ปีที่แล้ว +1

    It's a great video, thank you so much!

  • @atiqurrehman9331
    @atiqurrehman9331 6 ปีที่แล้ว +1

    great tricky questions thanks techsith

  • @rafaelschuster5746
    @rafaelschuster5746 3 ปีที่แล้ว

    Thank you for the great lessons!

  • @ganeshk4704
    @ganeshk4704 6 ปีที่แล้ว +1

    Wonderful video. Helped a lot

  • @andreybindyuk769
    @andreybindyuk769 4 ปีที่แล้ว +1

    Quite important and useful tutorial, many thanks!

  • @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.

  • @alex_zan
    @alex_zan 6 ปีที่แล้ว

    Really helpful video! We need more of those on TH-cam!

    • @Techsithtube
      @Techsithtube  6 ปีที่แล้ว

      I have a plan for more such videos. keep an eye on the channel for that.

  • @tsigiekumssa4018
    @tsigiekumssa4018 6 ปีที่แล้ว +1

    Thanks for doing this. It's very helpful.

  • @TheRobertVFrazier
    @TheRobertVFrazier 6 ปีที่แล้ว

    Helpful and thought-provoking!

  • @pacorosso
    @pacorosso 6 ปีที่แล้ว +1

    Very helpful videos, keep it up!

  • @jishabinu4729
    @jishabinu4729 6 ปีที่แล้ว

    Very helpful!! Great work!

  • @Gustavo-ye1ko
    @Gustavo-ye1ko 5 ปีที่แล้ว

    Some of these tricky questions I have never seen before... thanks!

  • @swapnilsaxena1654
    @swapnilsaxena1654 5 ปีที่แล้ว +1

    Really helpful. Appreciated all questions

  • @p2v515
    @p2v515 6 ปีที่แล้ว

    Amazing video! Like the job you do, good luck with it hope you stay motivated!!

    • @Techsithtube
      @Techsithtube  6 ปีที่แล้ว

      Thanks for the support ! )

  • @juliocesarbenavente9590
    @juliocesarbenavente9590 3 ปีที่แล้ว

    Thank you for all your work!

  • @alzz0
    @alzz0 5 ปีที่แล้ว +1

    Love yours videos tech sith

  • @Godwin335
    @Godwin335 6 ปีที่แล้ว

    Nice video, keep up the good work!

  • @anandtiwari3238
    @anandtiwari3238 5 ปีที่แล้ว +1

    Thanks for uploading more javascript questions

  • @vinkrins
    @vinkrins 6 ปีที่แล้ว

    Great and to the point questions, thanks for your videos

  • @DwivediAjay100
    @DwivediAjay100 5 ปีที่แล้ว +1

    Nice Content and explainations!!Thanks much

  • @xhacker89x
    @xhacker89x 4 ปีที่แล้ว

    Thank you! Very useful material!

  • @6keff
    @6keff 6 ปีที่แล้ว

    Excellent video!, I didn't knew about content editable property until now. Thanks!

    • @Techsithtube
      @Techsithtube  6 ปีที่แล้ว +1

      yes, its a neat trick.:)

  • @JB-pl8vj
    @JB-pl8vj 3 ปีที่แล้ว

    Thank you for taking the time to teach us! Cheers

  • @rampande5830
    @rampande5830 4 ปีที่แล้ว +1

    found tutorial very useful. Learnt new things in JS. Thank you.

  • @chinmoyktamal2837
    @chinmoyktamal2837 2 ปีที่แล้ว

    Great explanations! Thanks!