• Saturday , 4 April 2020

Tricky JavaScript Interview Questions and Answers

Code Canyon



Hard JavaScript Interview Questions and their possible answers ( cracking difficult coding interview questions )

Article and code samples from this tutorial
* techsith.com

Please be my patreons on patreaon
* https://www.patreon.com/techsith

Follow me for technology updates
* https://facebook.com/techsith
* https://twitter.com/techsith1

Help me translate this video.
* http://www.youtube.com/timedtext_video?ref=share&v=qsNxdukPc2U
Note: use https://translate.google.com/ to translate this video to your language. Let me know once you do that so i can give you credit. Thank you in advance.

Original source

3d Ocean

Related Posts

28 Comments

  1. Srikanth Mothkuri
    February 6, 2019 at 14:36

    i appreciate ur effort

  2. vivek kanoje
    February 6, 2019 at 14:36

    I used :
    let profile = {

    name: "vivek",

    };

    Object.defineProperty(profile, 'age',{

    value: 3,

    writable: false

    });

    profile.name = "Amol";

    profile.age = 20;

    console.log(profile);

    0/p => [object Object] {

    name: "Amol"

    }

    why it is so?

  3. vivek kanoje
    February 6, 2019 at 14:36

    I known about "IIFE" but i was unable to think use it here. Sometimes it goes this way i could not think likewise so can you please suggest me, how can i improve myself ?

  4. vivek kanoje
    February 6, 2019 at 14:36

    The unique values in new array can be achieved by Set object and spread operator as following,
    const numbers = [1,2,2,3];
    let uniqueNumArr = [… new Set(numbers)];
    console.log("Unique Array : ", uniqueNumArr);

  5. vivek kanoje
    February 6, 2019 at 14:36

    as "+" behaves as concatenate operator in first console JavaScript automatically converts int 2 to string and concatenate to result into = 22. While in second console log "-" acts as subtraction operator and converts string to integer and results to = 0.

  6. CHEEZZAM
    February 6, 2019 at 14:36

    his accent and voice suckss… even though his ideas are great… why do he even change and talk… yaaak.. cant even listen more than 5min…. rather i would stop going for an interview….

  7. narutoitachi 123
    February 6, 2019 at 14:36

    Let num[1,2,3,4]
    So you have a string
    Wowww

  8. Famouz ATB
    February 6, 2019 at 14:36

    That IIFE solution doesnt work for me hmm

  9. After TheTech
    February 6, 2019 at 14:36

    I would think that Math.max() should give 0

  10. Surya Rakesh Yerramsetti
    February 6, 2019 at 14:36

    Great videos, may i now what is online tool you use on videos for writing the code.

  11. Sachin Sharma
    February 6, 2019 at 14:36

    bhaiya tumko hindi nhi aati kya

  12. Mr.Jaw
    February 6, 2019 at 14:36

    1:45 sorry its not "concatetion" but its concatenation !

  13. Pugazh Krishna
    February 6, 2019 at 14:36

    My god. nice awsome

  14. Bruce
    February 6, 2019 at 14:36

    I don't understand why there're so many haters… Those are actually good and valid tricky questions. Btw sir, you mentioned that you have another channel that teaches algorithm and data structures, where is the link?

  15. eswar reddy
    February 6, 2019 at 14:36

    super explanatio

  16. Lohitha Yalavarthi
    February 6, 2019 at 14:36

    Hi Its great thanks for teaching too instead of only giving the answers, You are letting us think, Great thanks for the videos. And if you have video on spread operator do let me know I was asked this in one of my Interview I have an obj ={ name :" likitha",age : 30 } if you want to change the name property alone to be modified ,you can use spread operator { name: "lohitha" ,…obj} ->this is the answer anyways -> {name : "likitha"} ,but I had no idea of how spread can work in different ways how do they come up with this , I know the spread operator but I am not aware of this option ..,Please do let me know..

  17. HardwareAddiction
    February 6, 2019 at 14:36

    Not sure I understand why it would compare to -Infinity. It seems like it should see the length of arguments and return the first one if there's just one. If there are more, it should start comparing them to each other. Not sure how -Infinity logic comes into play. If you pass nothing, I'd actually expect it to return Infinity, not the opposite. I'm not sure if the way it works is based off how you do things in math or just a base assumption made by JavaScript authors.

  18. Priyanka Mahour
    February 6, 2019 at 14:36

    tysm sir , amazing video

  19. No Body
    February 6, 2019 at 14:36

    Buy a new camara please

  20. Raghhuraamm Penmadu
    February 6, 2019 at 14:36

    This video is very helpful

  21. pooja khatua
    February 6, 2019 at 14:36

    Hii sir can you please make video's

    on JSON data

  22. Desi Rocker
    February 6, 2019 at 14:36

    accent is fishy

  23. Neeraj Kapila
    February 6, 2019 at 14:36

    Awesome explanation along with very logical and technical approach.

  24. Kasuri Erandhika Hadiranpela
    February 6, 2019 at 14:36

    excellent

  25. Deepika Shukla
    February 6, 2019 at 14:36

    This site is very helpful you can get professionals to guide you

    https://stude.co/437677

    hope it help

  26. 1337User
    February 6, 2019 at 14:36

    Thank u soo much sir The way you explain all the questions is 1337(elite)

  27. Andrey Kozubenko
    February 6, 2019 at 14:36

    It was amazing, thank you

  28. Akash Chowdhury
    February 6, 2019 at 14:36

    Hi,
    I found your videos are quite impressive and very informative. I would like to inform you to get connected to our site, where you can explore your ideas and help students with their projects, homework and assignments at https://www.edubow.com/ and earn money as well. Looking forward to your response.

Leave A Comment

You must be logged in to post a comment.