JavaScript logical and tricky interview questions | JS output question | Js most asked question

Поділитися
Вставка
  • Опубліковано 18 гру 2024

КОМЕНТАРІ • 191

  • @codestepbystep
    @codestepbystep  2 роки тому +48

    Please support me by subscribe, like and comment :) thank you🥰😇

    • @onlygamingsamy
      @onlygamingsamy 2 роки тому +1

      hindi m nahi banaya kya yea video ?

    • @prateekray8028
      @prateekray8028 2 роки тому

      Please also make videos on array and object manipulations.

    • @pkyadav1864
      @pkyadav1864 2 роки тому

      hello anil sir,
      i am fresher
      i am following you since last 4 months
      and completed your react series
      and now aplying for jobs
      but as a fressher i am not able to get oppurtunites,
      if possible help me

    • @nimeshprajapati9028
      @nimeshprajapati9028 Рік тому +1

      Sir, can you give me questions source code ?

  • @vinitsharma871
    @vinitsharma871 2 роки тому +7

    I've no idea that its my luck or what but getting all the related topic that i was seeking, with such good quality. thanks bhaiya

  • @stevefox2318
    @stevefox2318 2 роки тому +15

    Thanks anil sidhu sir I cleared Infosys Specialist Programmer role by watching your ReactJs and this JavaScript video questions came by this.......this content is awesome thanks sir❤️❤️❤️❤️

  • @World_information5568
    @World_information5568 2 роки тому +2

    Sir ap nay ya Jo DSA with JavaScript series start ki hai is say ap ka JavaScript ka course Number 1 course in Hindi ban gaya hai❤️❤️❤️❤️ Aur jasay interview questions ap btatay hain koi ni btata . Ma sirf ap ko thanks hi kah sakta hun Aur hiqaqat ma ap Jo time hamaray liye nikaltay hain is ki koi qimat ni🥰.

  • @arvindsingh34
    @arvindsingh34 Рік тому

    Gaurav bhai mai apki almost video dekhta hoon aur muje bhut acchi lagti hai. Mai ek software developer hoon kabhi kabhi kaam ka stress hota hai but us time mai apki video dekta hoon aur relax feel hota hai.
    Thank You

  • @amitrajpurohit539
    @amitrajpurohit539 Рік тому +8

    At 8:03 ---->>>>> console.log(+'true'); is not giving 1 as a output, it is giving NaN in output

    • @sm0780
      @sm0780 Рік тому

      Yes..true is in quotes so consider as a string and not boolean

    • @RakhiBarnwal-x2c
      @RakhiBarnwal-x2c 3 місяці тому

      Yes , because when you use + operator in front of any valid number string, it will covert it into number, otherwise gives a NaN in console

    • @abhay5798
      @abhay5798 Місяць тому

      Remove the quotes and see the magic

  • @santankumardas5716
    @santankumardas5716 2 роки тому +4

    Really nice tricky questions covered, thanks for the video. 🙏

  • @srikarravoori124
    @srikarravoori124 10 місяців тому +1

    You put a great effort to explain all the 50 questions. Thanks a lot!

  • @purusharma8192
    @purusharma8192 2 роки тому +5

    we need more videos like these,these are gems

  • @prayatnasil
    @prayatnasil 2 роки тому +3

    Your this logical and another videos is so useful and I have learned so many things from you .. thank you and love you from heart.
    here i found mistake 22:00 its basically an array if we check like
    console.log(Array.isArray(args))

    • @shiv4667
      @shiv4667 2 роки тому

      Sorry big brain dude, he's just not intelligent like you to call it a mistake

  • @vivekmalviya3124
    @vivekmalviya3124 2 роки тому +3

    thanks a lot for this anil sir
    very useful

  • @neeleshprajapati6303
    @neeleshprajapati6303 2 роки тому +1

    Your way of explain is outstanding Anil sir please keep it video like this.

  • @devenderrathour3749
    @devenderrathour3749 Рік тому

    That's a very good video I have cleared my many doubt , you are so awesome sir.

  • @Rahulsharma0212
    @Rahulsharma0212 2 роки тому +43

    Q 32 to 36 are not in the video pls check

  • @fw_-or9bn
    @fw_-or9bn Рік тому +2

    Thank You Soo Much Bhai Lot's Of Love To Your Efforts Really Helpful 😍😘😍😘

  • @YuvrajSingh-rr5lh
    @YuvrajSingh-rr5lh 18 днів тому

    Thankyou so much🙏❣️ I've learnt a lot from this video.

  • @anilsaini6033
    @anilsaini6033 2 роки тому +1

    Awesome Anil, We enjoyed the video. Thank you

  • @raziquerahman5774
    @raziquerahman5774 10 місяців тому +1

    ❤❤❤❤❤ your efforts and make such questions in one frame is really really appreciable sir

  • @hemashah7031
    @hemashah7031 2 роки тому +1

    great help, extremely good , logical, in depth, cleared concepts

  • @sahilarora781
    @sahilarora781 Рік тому

    just watched full seried its good

  • @krishnabala7359
    @krishnabala7359 Рік тому +1

    Really awesome bro .... Mostly covered all concepts with clear exceptions

  • @shahalam7906
    @shahalam7906 2 роки тому

    Anil Sir, Your all video is very helpful for me.

  • @rudra298
    @rudra298 Рік тому

    good efforts and these question are really helpful

  • @SnehaSinghRajp
    @SnehaSinghRajp 11 місяців тому

    32 question console.log(..."sneha") answer is
    s n e h a (spread syntax (...) to spread the characters of the string "sneha" into individual elements. When used in the console.log statement, it essentially prints each character separately)

  • @codinggurujii
    @codinggurujii 2 роки тому +1

    Thankyou you so much sir this is great content you are doing great work..❤️

  • @akshaydhole5700
    @akshaydhole5700 2 роки тому

    Thanks!

  • @bharatmishra250
    @bharatmishra250 2 роки тому +1

    Beautiful explained

  • @orsanjiv
    @orsanjiv 6 місяців тому

    Thanks a lot. This video was really helpful

  • @srinivasnahak3473
    @srinivasnahak3473 3 місяці тому

    Thank you so much for this detailed video ❤

  • @lets_see_777
    @lets_see_777 11 місяців тому

    just did exact 4k like, thanks for this, really helped a lot

  • @rushikeshpatil3277
    @rushikeshpatil3277 2 роки тому +1

    Great

  • @ashutoshshrivastava57
    @ashutoshshrivastava57 6 місяців тому

    Nice questions sir

  • @ZubairKhan-mb6rd
    @ZubairKhan-mb6rd 2 роки тому

    Good questions🙋 👍

  • @saikrishnamalepati3461
    @saikrishnamalepati3461 Рік тому

    Really great very useful for clearing interviews covered almost all make one series on filter,map ,ES6

  • @mr.wazirgaming2696
    @mr.wazirgaming2696 2 роки тому

    This video is very good find some new things to learn thank you sir ❤️👍😊

  • @NageshNani_28
    @NageshNani_28 Рік тому

    very good information, first heartly thank you for showing this kind of hard work, kindly make DSA questions using js. make videos in English if it possible bcz its reach more people

  • @paragmahajan9467
    @paragmahajan9467 10 місяців тому

    Thanks sir ... very informative video❤

  • @nachiketdorkulkar7114
    @nachiketdorkulkar7114 2 роки тому +1

    thank u Anil Bhaiya

  • @adityaTheExplore
    @adityaTheExplore 2 роки тому

    Thanks a lot ✌️✌️👍👍👌 unique way

  • @childtalentvlogs
    @childtalentvlogs 10 місяців тому

    Excellent video sir

  • @vidushivardhan8665
    @vidushivardhan8665 2 роки тому

    Great video

  • @arpanasinha6500
    @arpanasinha6500 2 роки тому +1

    loved the video...

  • @heyazhar2960
    @heyazhar2960 8 місяців тому +3

    I have over 5 years of experience, now switching job, and your this video helped me a lot. Thanks from bootom of my heart 🙏🩵

    • @codestepbystep
      @codestepbystep  8 місяців тому

      You got new Job ?

    • @sumitsakpal7085
      @sumitsakpal7085 6 місяців тому

      @@codestepbystep Q 32 to 36 are not in the video pls check

  • @Komalverma-j8t
    @Komalverma-j8t Рік тому

    great explanation 🤗🤗

  • @rutvikmakvana4
    @rutvikmakvana4 4 місяці тому +1

    number45 - Rohit sharma ❤

  • @vijenderkumar3034
    @vijenderkumar3034 2 роки тому

    Very good video

  • @laxmankumarrawat5690
    @laxmankumarrawat5690 2 роки тому

    Thank u so much, Anil sir

  • @i.santosh_gautam
    @i.santosh_gautam 2 роки тому +2

    Bhai bhut kuch sikha hai ap ki vidio dekh h bass ek bar logical qauestion par vidio bana do maja a gayega taki hamre array aur vue ke logic clear ho gaye sahi se

  • @prayatnasil
    @prayatnasil 2 роки тому +11

    great but unfortunately 32-36 is skipped 🙂

  • @angad_2394
    @angad_2394 10 місяців тому

    Nice Video

  • @anandagar2k
    @anandagar2k 2 роки тому

    Nice examples

  • @CodeSipSociety
    @CodeSipSociety Рік тому

    thank you so much for this video ❤

  • @poojamaheshwari748
    @poojamaheshwari748 Рік тому +4

    Sir I just wanted to ask that, for web developer position whether we should learn DSA by solving questions in javascript OR we should solve questions in C++, Java .which one is better ?

    • @yogendraprabhakar6834
      @yogendraprabhakar6834 Рік тому +4

      It really depends, If you are targeting product-based firms then you should focus more on DSA regardless of any programming language. But if you just want to get a job instantly in any service or startup firms, then you should more into development, you should be able to build projects. As a fresher you should aware of logical and apptitude as well.

  • @kishorranga
    @kishorranga 2 роки тому

    Nice one!

  • @theaayushsingh
    @theaayushsingh Рік тому +1

    question 2 - var does not global scope, it has a functional scope.

  • @bhagwatkadam8750
    @bhagwatkadam8750 2 роки тому

    Good

  • @shahidhussain2874
    @shahidhussain2874 2 роки тому +3

    it works only on the boolean values, not on the strings.
    console.log(+"true")
    output NaN

    • @codestepbystep
      @codestepbystep  2 роки тому

      Right

    • @mazidsamsk7700
      @mazidsamsk7700 2 роки тому +2

      + is used to convert the str into number u can type console.log(typeof +"true") it will give u number

    • @shahidhussain2874
      @shahidhussain2874 2 роки тому +1

      @@mazidsamsk7700 okk thanks bro

  • @Pappu-f3w9i
    @Pappu-f3w9i 8 місяців тому +1

    32 to 36 question invisible . I got shocked when i saw ouput like batman 21 came from where sir plz upload again Q 32 to 36

  • @ruchirsingh3635
    @ruchirsingh3635 2 роки тому +2

    Sir, in question number 49, var has only function scope so we can't access the variable outside the function

  • @anjalikothari9152
    @anjalikothari9152 Рік тому +1

    Thnku sir🌸

  • @stevefox2318
    @stevefox2318 2 роки тому

    Best❤️ thanks sir

  • @ajitrana3158
    @ajitrana3158 2 роки тому

    Ek or video bnana broo isi trh

  • @shubhamshrivastava1504
    @shubhamshrivastava1504 Рік тому

    32th question time travel 37th question .

  • @ankitbabu4268
    @ankitbabu4268 Рік тому

    Plz aap toda screen zoom kr k Batya kijiy..very helpful hoga..

  • @yashusikar
    @yashusikar 2 роки тому

    thank you so much sir

  • @vinaypatil8009
    @vinaypatil8009 2 роки тому +3

    Sir , Video is incomplete
    From Q.32 to Q.36 video recording stopped please check it again!!!
    Your ecommerce html css project is just awesome
    Please make similar kind of playlist awesome project with
    JAVASCRIPT & REACTJS

  • @wayofmuhammad
    @wayofmuhammad 2 роки тому +1

    U should provide that question in pdf also so that we can download that question for practice

  • @ritviksardana3893
    @ritviksardana3893 2 роки тому

    Q1) why is it undefined? When the variable value is "apple"

    • @subhu143
      @subhu143 2 роки тому

      Because we use that variable before we declare that, that variable was declared using var that's why give undefined if that declared using let or const then the output should be error this is called hoisting in javascript

    • @kavita3316
      @kavita3316 2 роки тому

      It's because of hoisting. Read more about it in Namaste JS.

    • @avinashsinghrajput4914
      @avinashsinghrajput4914 2 роки тому

      @@subhu143 we also not declare let first than its gives reference error and we also not declared var first than why it is showing undefined ?????? It's mean in var case if we not declared var first and use it than it always shows undefined? So what is the use of it?

  • @vaibhavsomani2690
    @vaibhavsomani2690 9 місяців тому

    Let and Const are also hoisted, but they are in temporal deadzone, therefore reference error.

  • @rajesh.geesala7565
    @rajesh.geesala7565 Рік тому

    Thanks

  • @ravishbisht502
    @ravishbisht502 Рік тому

    Thanks bro

  • @adharshnjose5623
    @adharshnjose5623 8 місяців тому

    In 30th question string is not negative value the empty string is considered as falsy

  • @entertaintvshorts
    @entertaintvshorts Рік тому +2

    Can u explain detailly about line no.53 to 58 in output.html why value of D is also changed to anil

    • @sudeshvantimars6554
      @sudeshvantimars6554 Місяць тому

      study about... primitive data types and non-primitive data types.

  • @munawarshaik1671
    @munawarshaik1671 2 роки тому +3

    sir if u have pasted the source code link in the description it will be better for us to practice these questions .. thank u for making this video.. hoping for more interview related videos..

    • @codestepbystep
      @codestepbystep  2 роки тому +6

      Okay, I will upload these question on github and share link in descripton box soon

    • @ShivamPandey-jc8rh
      @ShivamPandey-jc8rh 2 роки тому +3

      @@codestepbystep sir please upload the github link

    • @anupkumarjana9002
      @anupkumarjana9002 9 місяців тому

      ​@@codestepbystep Please do update the link.

  • @legendarygaming8180
    @legendarygaming8180 5 місяців тому

    Sir, video is missing from question number 33 to 36. Please verify that part (time-stamp: 47.20 onwards)
    BTW nice explain❤❤

  • @sharoonps4285
    @sharoonps4285 Рік тому

    Sir plzz do some more react coding challenge in English.plzz 😊

  • @yashrajdawkhar7727
    @yashrajdawkhar7727 2 роки тому

    Best examples 👍

  • @BeastUn
    @BeastUn Рік тому +1

    hoisting Is applied to let and const also but the default initialization is not happening like the var keyword

  • @gtbaba123
    @gtbaba123 2 роки тому

    Ty bro for this

  • @rahulkumar7289
    @rahulkumar7289 2 роки тому

    Thanks 🙏🏿

  • @snehadange4518
    @snehadange4518 10 місяців тому

    THanks

  • @mensfashionguruji7438
    @mensfashionguruji7438 Рік тому

    plzz make video on javascript

  • @iftekhar_ansari
    @iftekhar_ansari 2 роки тому +1

    i answered 45 out of 50 before watching the result

  • @monikagupta4203
    @monikagupta4203 Рік тому

    Hi, I need to correct operator in Q.No-15 is a rest operator

  • @RajaBhai-uq9tr
    @RajaBhai-uq9tr 2 роки тому

    Sorting me quick sorting ho jaye to mja aayega...

  • @gouravnainwaya5669
    @gouravnainwaya5669 2 роки тому +1

    I hope this has leetcode questions

  • @afzalas2944
    @afzalas2944 2 роки тому

    Love u sir

  • @heartfilterer9863
    @heartfilterer9863 2 роки тому

    5:30 i value is 3 in the global scope? How We can get to know that Question number 2

    • @heartfilterer9863
      @heartfilterer9863 2 роки тому

      0,1,2 values of i in the for loop but due to var keyword it'll print 2 i guess please correct me bhaiya

    • @codestepbystep
      @codestepbystep  2 роки тому

      @@heartfilterer9863 Right. less than 3... not equal to 3

  • @yogitamisal8677
    @yogitamisal8677 Рік тому

    "Variables defined with let and const are hoisted to the top of the block, but not initialized --Webdoc ."
    You are saying let and const basically not hoisted ? can you please elaborate , Q. 1

    • @nirmalchamika6092
      @nirmalchamika6092 Рік тому

      check this one.
      function fn() {
      a = 10;
      console.log(a);
      b = 20;
      console.log(b);
      let b = 50;
      }
      fn();

  • @gurutechnique9074
    @gurutechnique9074 2 роки тому

    Please sir make video on Data structure single linklist double linklist

  • @patilsign
    @patilsign Рік тому

    Please can u add those questions in description 😊

  • @jitusahu1839
    @jitusahu1839 2 роки тому +1

    Kindly upload the same video in hindi.

  • @ranuchakravarti3277
    @ranuchakravarti3277 Рік тому

    Bro let and const are also hoisted but in temporal dead zone not in global scope/memory

  • @phpboosters
    @phpboosters 4 місяці тому

    Hi could you please help to how to stop clicking window close button using javascript or jQuery.Based on some conditions I need to implement this feature so user not close the window untill user fill the

  • @luckynama3439
    @luckynama3439 2 роки тому

    Plz make in hindi this tutorial 🙏

  • @heartfilterer9863
    @heartfilterer9863 2 роки тому

    Q2))). 0,1,2 values of i in the for loop but due to var keyword it'll print 2 i guess please correct me bhaiya

  • @mukultiwari3656
    @mukultiwari3656 Рік тому

    great, but questions from 32-36 are skipped

  • @chalupandey2808
    @chalupandey2808 2 роки тому

    Sir javascript course bhi bata do please?

  • @indreshsikarwar5611
    @indreshsikarwar5611 Рік тому

    In Question 16 that wil give an error if we put string operation inside the eval function of JS. But I don't know how it works in your case. (I have tried in chrome console too). please explain.

  • @gouravnainwaya5669
    @gouravnainwaya5669 2 роки тому +1

    This are cheatsheet for dsa ?