Top 10 JavaScript Coding Interview Question and Answers

Поделиться
HTML-код
  • Опубликовано: 20 янв 2025

Комментарии • 127

  • @ManojPal-o6o
    @ManojPal-o6o Год назад +9

    Sir , you are doing very very very great Job . hats Off sir. Some peoples are selling their knowledge and experience now these days and you are sharing and distributing free. I more appreciate still less for you. 🙏

  • @sudheerdarla9812
    @sudheerdarla9812 Год назад +4

    Thanks. Even more optimization for checking prime number is a for loop from 2 to SquareRoot(Givennumber).

  • @kiva1806
    @kiva1806 Год назад +7

    Straight to the point and very well explained. you are a gem 💥

  • @sumairaramzan1365
    @sumairaramzan1365 Год назад

    sir you are great .mene interview se pehle apki 3hours ki vedio dekhi itni lengthy vedio mene kbi ni dekhi lekin usko dekhne k bad kisi or vedio ko dekhne ki zrort ni pri thank you so much

  • @siddharthtrivedi8692
    @siddharthtrivedi8692 Год назад +46

    please make top 100 js coding questions.

  • @srinivasnahak3473
    @srinivasnahak3473 4 месяца назад +1

    I wish I had watched your tutorial before my 2 interviews, I couldn't answer them and hence lost the jobs. But hopefully, I'll be using this knowledge for my future interviews.

    • @ramansharma55
      @ramansharma55 4 месяца назад +2

      Hi!
      Could you please help me how did you approach the company.

  • @sushmithashenoy7581
    @sushmithashenoy7581 8 месяцев назад +2

    Thankyou for your effort sir🙏
    Q10 : can be done like this i suppose
    whitespaceremoved= str.split(" ") .join("");

  • @jaiswalgaurav957
    @jaiswalgaurav957 3 месяца назад

    Pure Gold 👌👌👌👌

  • @pushpendrasharma1744
    @pushpendrasharma1744 3 месяца назад +2

    Thanks sir i got a job last month

  • @LifeinBangalore502
    @LifeinBangalore502 Год назад +2

    Thank you so much sir for this video and nice explanation 🙂

  • @RPS-wf3hm
    @RPS-wf3hm Год назад +5

    Sir, You have given me lot confidence to face the interview. Salut for your work!

  • @sree2970
    @sree2970 5 месяцев назад

    Sir please start training on AI tools too ..the way you teach was just beyond awsome

  • @tusharutane8031
    @tusharutane8031 Год назад +2

    amazing content hoping for the same content as we are applying for jobs

    • @interviewhappy
      @interviewhappy  Год назад

      Thanks Tushar and all the best for your career.

  • @priyankasaini7204
    @priyankasaini7204 Год назад +1

    21:00 Using recursion
    // Write a function to calculate factorial of a number.
    // one way
    function factorail(num){
    if(num===1)
    return 1;
    return num* factorail(num-1);
    }
    // console.log(factorail(5));

  • @_Sujit-khot_
    @_Sujit-khot_ Год назад +1

    good luck sir 👍

  • @arjunkishore443
    @arjunkishore443 4 месяца назад

    Best one🎉

  • @jayeshmahajan4213
    @jayeshmahajan4213 Год назад

    thank you sir i completed all questions and prepared so now make more videos on reactjs coding interview it is very help more me for the cracked interview.

  • @jitendrakumarjat855
    @jitendrakumarjat855 Год назад +3

    sir please make videos on react js series for intermediete level your explanation top notch

  • @saranyaa5642
    @saranyaa5642 Год назад

    Thank you so much sir. Give us more programming questions in javascript which will be very useful for our interview sir.

  • @narendravaniya9058
    @narendravaniya9058 Год назад

    Very nice coding explained very well thank you....

    • @interviewhappy
      @interviewhappy  Год назад

      Thanks Naren and all the best for your career.

  • @AnshBabariya-n1w
    @AnshBabariya-n1w 10 месяцев назад

    I crack my js interview from your support ❤❤

    • @mathswala6951
      @mathswala6951 10 месяцев назад

      Give me your insta id bhai

    • @yashbadgujar-qq9iz
      @yashbadgujar-qq9iz 10 месяцев назад

      heyy what kind of js coding questions u were asked please reply it would be very helpful

  • @ansarisuhail5127
    @ansarisuhail5127 10 месяцев назад

    Thank u so much sir .
    But sir try to make some complex coding questions for interview

  • @yogsharma7807
    @yogsharma7807 4 месяца назад

    Use this to handle edge case
    const numberFactorial = (num) => {
    let res = 1;
    for (let i = 1; i

  • @ShubhamKumar-dc9tu
    @ShubhamKumar-dc9tu Год назад

    Great video sir thank you so much plzz add more video like this question solve

  • @Melakusisay
    @Melakusisay Год назад

    Thank you again and keep up more questions.

  • @RajKumar-yc1qx
    @RajKumar-yc1qx 10 месяцев назад

    Thanks for creating such a wonderful video, it was very sweet of you !

  • @sugan4907
    @sugan4907 5 месяцев назад

    sir after preparing for node js from your course . Can I directly go for interview ? or I have to prepare data structure and algorithm separately

  • @Stellarwit
    @Stellarwit 4 месяца назад

    for duplicate values this is a better approach
    const mainFn = (array)=>{
    const result = []
    array.forEach((eachItem)=>{
    if(!result.includes(eachItem)){
    result.push(eachItem)
    }
    })
    return result
    }
    console.log(mainFn([1,2,3,4,5,1,2,3,4,5,6]))

  • @_d_e_e_p_u_l_u_
    @_d_e_e_p_u_l_u_ 2 месяца назад

    is all the questions come for interviews is same as the above questions can anyone tell me please

  • @kanchanmatai4170
    @kanchanmatai4170 9 месяцев назад

    very nicely explained

  • @rajbhatia2784
    @rajbhatia2784 Год назад

    another great content thaks a lottt for this

  • @rekhagavhane-e4t
    @rekhagavhane-e4t Год назад

    Very nice video!!

  • @hello_Subham
    @hello_Subham Год назад

    Sir, we are looking more coding Questions like this in javascript please do it .💥

  • @harikrishnanpandyan5684
    @harikrishnanpandyan5684 Год назад

    We need more js video same as it is 🔥🔥🔥🔥

  • @omkarmore4453
    @omkarmore4453 6 месяцев назад

    Sir can you pls add more complex dsa questions

  • @bramhamreddy5417
    @bramhamreddy5417 Год назад

    Thanks a lot., for supporting

  • @MomLifeJournal
    @MomLifeJournal Год назад

    Thank you …

  • @sadanandamcharynani7631
    @sadanandamcharynani7631 Год назад

    thank you so much sir

  • @codewithdeepak45
    @codewithdeepak45 Год назад

    Thankyou!

  • @amangurram1132
    @amangurram1132 4 месяца назад

    Reverse of a string + Palindrome or not
    Find the longest word in the sentence
    Function to remove duplicates from an array
    Two strings are anagrams (words with same alphabets in different or similar order)
    Number of vowels in a string
    Find the largest number in an array
    Check if given number is a prime number
    Factorial of a given number
    Remove whitespaces from a string
    Thank you very much happy sir and All the best guys!

  • @nirmalaavvaru5432
    @nirmalaavvaru5432 8 месяцев назад

    Hi Sir, Please upload the videos on Vue js Interview Questions and Answers.

  • @saikumar7247
    @saikumar7247 Год назад

    sir plzz create a video on react js coding interview also

  • @SURESHREDDY-cm7vt
    @SURESHREDDY-cm7vt Год назад +1

    Nice explanation. I have one doubt? If you don't mind , can explain me? What's the difference between javascript and java?

    • @RamanNani1998
      @RamanNani1998 Год назад

      Javascript is scripting langauge but java is pure backend language

  • @riyamehere717
    @riyamehere717 10 месяцев назад

    Thank you

  • @3x10.8_ms
    @3x10.8_ms Год назад

    mazza aa gya

  • @pradeeph4764
    @pradeeph4764 11 месяцев назад

    Sir , execute in vs also

  • @N_n5566
    @N_n5566 10 месяцев назад

    Can you suggest me more interview coding questions to clear code round.Iam practising but iam not able to clear coding round.I have practiced your questins also but not cleared the round.Please suggest me interview tricky coding questionss to clear that round.

  • @vinamrasangal8436
    @vinamrasangal8436 6 месяцев назад

    thank you so much sir

  • @123mutahir
    @123mutahir Год назад

    Thank you Sir,

  • @saranyaa5642
    @saranyaa5642 Год назад

    Please post top 10 react programmatic questions asking in frontend

  • @dineshkumarravichandran4981
    @dineshkumarravichandran4981 6 месяцев назад +2

    function larNum(){
    const num = [1,2,3,4,5];
    var laNum = 0;
    num.reduce((x,y)=>laNum = x>y?x:y)
    console.log(laNum);
    }
    larNum();

  • @imoniiii
    @imoniiii 8 месяцев назад

    please make with like this for react .

  • @anuradhatiwari1787
    @anuradhatiwari1787 Год назад

    your teaching way is osam sir please pray for me whean i got select i will defently inform you sir

  • @AradhanaTurkar-pr9sv
    @AradhanaTurkar-pr9sv Год назад

    Sir I have combine mock on html,css,js can u make video on this please sir

  • @whatisimprov
    @whatisimprov Год назад +2

    for largest number would this work
    const findLargestNumber = (arr) => {
    const largest = arr.sort().reverse();
    return largest[0];
    };

    • @interviewhappy
      @interviewhappy  Год назад +1

      woww.... that's what I want. Try new ways of doing things. Check this in some online compiler. All the best for your career.

  • @jyotighali8002
    @jyotighali8002 11 месяцев назад

    how can I run and test it

  • @subratabarick2337
    @subratabarick2337 Год назад

    Sir, i have done my bsc in 2019, after that i was doing the job but it was from non it.. so am i elegleble for becoming a devloper as a fresher...

  • @priyankasaini7204
    @priyankasaini7204 Год назад

    17:00 Antother way
    // // write a function to find the maximum number in an array
    let arr= [2,4,56,7,2,100,5444,1,0];
    function maxElement(arr){
    return Math.max(...arr);
    }
    console.log(maxElement(arr));

  • @RaviRanjan-yi5rq
    @RaviRanjan-yi5rq Год назад

    if possible please add Azure and DevOps Interview Question

  • @yadunandan3684
    @yadunandan3684 Год назад

    Will they ask these questions for 2+ years experience employee also?

  • @naveentech3837
    @naveentech3837 Год назад

    Good

  • @manojhk7469
    @manojhk7469 Год назад

    join is not working sir

  • @ArnabKhanrah
    @ArnabKhanrah 6 месяцев назад

    In the 'IsPrime' function we need to add
    If(number < 2){
    return false;
    }
    Otherwise isPrime(1) will return true.

    • @regilearn2138
      @regilearn2138 6 месяцев назад

      no need thats why the for loop started from 2

  • @dizzgamers1878
    @dizzgamers1878 5 месяцев назад

    Most of the MNC companies are requested not to use inbuild function ...

  • @ILiusion_world
    @ILiusion_world Год назад

    sir plz put the last question answer

  • @NikhilSingh-pb2jg
    @NikhilSingh-pb2jg 10 месяцев назад

    First question.. Logic for doing in short way is wrong as after splitting using " " , we need to loop and then reverse.

  • @kumaxFPS
    @kumaxFPS Год назад +1

    Q2 - can be done with REDUCE fx too !
    const words = str.split(" ")
    const ans = words.reduce(function(acc, curr){
    if(curr.length > acc.length){
    acc = curr;
    }
    return acc;
    },"")
    return console.log(ans)

  • @sandeeprathore7994
    @sandeeprathore7994 Год назад

    Sorry but i cant get the Duplicate element question

  • @rajkirankelangi5751
    @rajkirankelangi5751 7 месяцев назад

    please make top 100 js coding questions. guys hit like buttom 🔘✅🔳

  • @vardhinenikishore5667
    @vardhinenikishore5667 Год назад

    Sir, Please do promises, async and await coding concepts and React interview questions, Mor helpful preparing the interview questions

  • @dineshkumarravichandran4981
    @dineshkumarravichandran4981 6 месяцев назад

    function primeNum(){
    const num = [1,2,3,4,5];
    var prime = num.filter((x)=>x%2!=0)
    console.log(prime);
    }
    primeNum();

  • @dineshkumarravichandran4981
    @dineshkumarravichandran4981 6 месяцев назад

    function fact(){
    const num = 5;
    var factorial = 1;
    for(i=1;i

  • @OCEMTechZone
    @OCEMTechZone Год назад

    🎉

  • @nayiriya1921
    @nayiriya1921 Год назад

    Sir please make a video in hindi

    • @interviewhappy
      @interviewhappy  Год назад

      Sure Soon

    • @nayiriya1921
      @nayiriya1921 Год назад

      @@interviewhappy sir aapke RUclips series se html,css,bootstrap, JavaScript and react ke questions solve kare to itna fresher/intern Front-End developer interview ke liye enough he?

  • @giantbush4258
    @giantbush4258 11 месяцев назад

    These are fun to practice. That said these are not enough for first round. So i kindly disagree.

  • @divyanshusingh4293
    @divyanshusingh4293 5 месяцев назад +4

    Sir plz improve ur english its really hard to get through😅

    • @interviewhappy
      @interviewhappy  5 месяцев назад +15

      Photo mai mundi udhr ghuma ke sunega to kaise smjh aaegi bhai

    • @kaushalpatel2284
      @kaushalpatel2284 3 месяца назад +1

      @@interviewhappykeep it up sir…..
      You are helping so many peoples…..
      I am from Canada 🇨🇦 and watching your videos….. I ordered your pdf materials….and I got it already via email…..
      I feel so so lucky to have such a wonderful materials and teacher like you❤❤❤

    • @manojmishra6986
      @manojmishra6986 2 месяца назад +2

      Epic reply 😂​@@interviewhappy

  • @Raj_Panchalll
    @Raj_Panchalll Год назад +1

    const str = 'Hello world'
    const reversedStr = str.split(' ').reduce( (acc, char) => char + acc + ' ')
    console.log(reversedStr)

  • @HangOut-BK
    @HangOut-BK 6 месяцев назад

    //*check palindrome
    let p =(s)=>{ return (s==[...s].reverse().join``)
    }
    console.log(p("chethan")); //true
    //*reverse string
    const str ="hello"
    console.log([...str].reverse().join``)
    //*remove duplicate
    const num=[1,2,3,4,4];
    console.log([...new Set(num)]);

  • @sequoiakanies2202
    @sequoiakanies2202 6 месяцев назад

    Remainder* , not reminder
    Sorry I have to. It’s like a disease 🦠

  • @engineersINnight
    @engineersINnight Год назад

    Nice