Top 10 JavaScript Coding Interview Question and Answers

  Рет қаралды 90,550

Interview Happy

Interview Happy

Күн бұрын

Пікірлер: 125
@ManojPal-o6o
@ManojPal-o6o Жыл бұрын
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. 🙏
@interviewhappy
@interviewhappy Жыл бұрын
Thanks a lot @user
@sudheerdarla9812
@sudheerdarla9812 Жыл бұрын
Thanks. Even more optimization for checking prime number is a for loop from 2 to SquareRoot(Givennumber).
@pushpendrasharma1744
@pushpendrasharma1744 Ай бұрын
Thanks sir i got a job last month
@amangurram1132
@amangurram1132 3 ай бұрын
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!
@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
@interviewhappy
@interviewhappy Жыл бұрын
Your welcome @sumairaramzan1365
@kiva1806
@kiva1806 Жыл бұрын
Straight to the point and very well explained. you are a gem 💥
@interviewhappy
@interviewhappy 11 ай бұрын
Thanks @kiva
@Stellarwit
@Stellarwit 2 ай бұрын
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]))
@siddharthtrivedi8692
@siddharthtrivedi8692 Жыл бұрын
please make top 100 js coding questions.
@vishal_sharma_rha
@vishal_sharma_rha 3 ай бұрын
Already there
@srinivasnahak3473
@srinivasnahak3473 2 ай бұрын
@@vishal_sharma_rha Where?
@yogsharma7807
@yogsharma7807 2 ай бұрын
Use this to handle edge case const numberFactorial = (num) => { let res = 1; for (let i = 1; i
@srinivasnahak3473
@srinivasnahak3473 2 ай бұрын
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 2 ай бұрын
Hi! Could you please help me how did you approach the company.
@sushmithashenoy7581
@sushmithashenoy7581 6 ай бұрын
Thankyou for your effort sir🙏 Q10 : can be done like this i suppose whitespaceremoved= str.split(" ") .join("");
@RPS-wf3hm
@RPS-wf3hm 11 ай бұрын
Sir, You have given me lot confidence to face the interview. Salut for your work!
@whatisimprov
@whatisimprov Жыл бұрын
for largest number would this work const findLargestNumber = (arr) => { const largest = arr.sort().reverse(); return largest[0]; };
@interviewhappy
@interviewhappy Жыл бұрын
woww.... that's what I want. Try new ways of doing things. Check this in some online compiler. All the best for your career.
@tusharutane8031
@tusharutane8031 Жыл бұрын
amazing content hoping for the same content as we are applying for jobs
@interviewhappy
@interviewhappy Жыл бұрын
Thanks Tushar and all the best for your career.
@jaiswalgaurav957
@jaiswalgaurav957 Ай бұрын
Pure Gold 👌👌👌👌
@AnshBabariya-n1w
@AnshBabariya-n1w 8 ай бұрын
I crack my js interview from your support ❤❤
@mathswala6951
@mathswala6951 8 ай бұрын
Give me your insta id bhai
@yashbadgujar-qq9iz
@yashbadgujar-qq9iz 8 ай бұрын
heyy what kind of js coding questions u were asked please reply it would be very helpful
@sree2970
@sree2970 3 ай бұрын
Sir please start training on AI tools too ..the way you teach was just beyond awsome
@dineshkumarravichandran4981
@dineshkumarravichandran4981 5 ай бұрын
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();
@LifeinBangalore502
@LifeinBangalore502 Жыл бұрын
Thank you so much sir for this video and nice explanation 🙂
@interviewhappy
@interviewhappy Жыл бұрын
Most welcome @sabita
@_Sujit-khot_
@_Sujit-khot_ Жыл бұрын
good luck sir 👍
@narendravaniya9058
@narendravaniya9058 Жыл бұрын
Very nice coding explained very well thank you....
@interviewhappy
@interviewhappy Жыл бұрын
Thanks Naren and all the best for your career.
@jitendrakumarjat855
@jitendrakumarjat855 Жыл бұрын
sir please make videos on react js series for intermediete level your explanation top notch
@interviewhappy
@interviewhappy Жыл бұрын
Sure, after JS, I will cover React.
@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.
@interviewhappy
@interviewhappy Жыл бұрын
All the best @ jayesh
@MomLifeJournal
@MomLifeJournal Жыл бұрын
Thank you …
@interviewhappy
@interviewhappy Жыл бұрын
Welcome!
@Raj_Panchalll
@Raj_Panchalll Жыл бұрын
const str = 'Hello world' const reversedStr = str.split(' ').reduce( (acc, char) => char + acc + ' ') console.log(reversedStr)
@saranyaa5642
@saranyaa5642 Жыл бұрын
Thank you so much sir. Give us more programming questions in javascript which will be very useful for our interview sir.
@interviewhappy
@interviewhappy Жыл бұрын
I will try my best @saranyaa
@ansarisuhail5127
@ansarisuhail5127 8 ай бұрын
Thank u so much sir . But sir try to make some complex coding questions for interview
@anuradhatiwari1787
@anuradhatiwari1787 Жыл бұрын
your teaching way is osam sir please pray for me whean i got select i will defently inform you sir
@interviewhappy
@interviewhappy Жыл бұрын
All the best for your interviews.
@vivekgupta7435
@vivekgupta7435 11 ай бұрын
have u got a job???
@RajKumar-yc1qx
@RajKumar-yc1qx 9 ай бұрын
Thanks for creating such a wonderful video, it was very sweet of you !
@interviewhappy
@interviewhappy 8 ай бұрын
You are so welcome!
@bramhamreddy5417
@bramhamreddy5417 Жыл бұрын
Thanks a lot., for supporting
@interviewhappy
@interviewhappy Жыл бұрын
Always welcome @bramham
@arjunkishore443
@arjunkishore443 2 ай бұрын
Best one🎉
@ArnabKhanrah
@ArnabKhanrah 5 ай бұрын
In the 'IsPrime' function we need to add If(number < 2){ return false; } Otherwise isPrime(1) will return true.
@regilearn2138
@regilearn2138 4 ай бұрын
no need thats why the for loop started from 2
@SURESHREDDY-cm7vt
@SURESHREDDY-cm7vt Жыл бұрын
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
@dineshkumarravichandran4981
@dineshkumarravichandran4981 5 ай бұрын
function primeNum(){ const num = [1,2,3,4,5]; var prime = num.filter((x)=>x%2!=0) console.log(prime); } primeNum();
@2784raj
@2784raj Жыл бұрын
another great content thaks a lottt for this
@interviewhappy
@interviewhappy Жыл бұрын
Thanks Raj. All the best.
@ShubhamKumar-dc9tu
@ShubhamKumar-dc9tu Жыл бұрын
Great video sir thank you so much plzz add more video like this question solve
@interviewhappy
@interviewhappy Жыл бұрын
Sure I will try to do so @shubham
@ShubhamKumar-dc9tu
@ShubhamKumar-dc9tu Жыл бұрын
@@interviewhappy Thank you sir 🙏
@nirmalaavvaru5432
@nirmalaavvaru5432 6 ай бұрын
Hi Sir, Please upload the videos on Vue js Interview Questions and Answers.
@hello_Subham
@hello_Subham Жыл бұрын
Sir, we are looking more coding Questions like this in javascript please do it .💥
@interviewhappy
@interviewhappy Жыл бұрын
Will upload soon @code_techbysubham
@sugan4907
@sugan4907 3 ай бұрын
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
@riyamehere717
@riyamehere717 9 ай бұрын
Thank you
@interviewhappy
@interviewhappy 8 ай бұрын
You're welcome
@sadanandamcharynani7631
@sadanandamcharynani7631 11 ай бұрын
thank you so much sir
@kanchanmatai4170
@kanchanmatai4170 7 ай бұрын
very nicely explained
@interviewhappy
@interviewhappy 7 ай бұрын
Thank you so much 🙂
@dineshkumarravichandran4981
@dineshkumarravichandran4981 5 ай бұрын
function fact(){ const num = 5; var factorial = 1; for(i=1;i
@Melakusisay
@Melakusisay Жыл бұрын
Thank you again and keep up more questions.
@interviewhappy
@interviewhappy Жыл бұрын
Always! welcome @melakusisay
@3x10.8_ms
@3x10.8_ms Жыл бұрын
mazza aa gya
@harikrishnanpandyan5684
@harikrishnanpandyan5684 Жыл бұрын
We need more js video same as it is 🔥🔥🔥🔥
@saranyaa5642
@saranyaa5642 Жыл бұрын
Please post top 10 react programmatic questions asking in frontend
@priyankasaini7204
@priyankasaini7204 11 ай бұрын
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));
@omkarmore4453
@omkarmore4453 4 ай бұрын
Sir can you pls add more complex dsa questions
@codewithdeepak45
@codewithdeepak45 Жыл бұрын
Thankyou!
@interviewhappy
@interviewhappy Жыл бұрын
You're welcome! @deepak
@N_n5566
@N_n5566 8 ай бұрын
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.
@RaviRanjan-yi5rq
@RaviRanjan-yi5rq Жыл бұрын
if possible please add Azure and DevOps Interview Question
@123mutahir
@123mutahir Жыл бұрын
Thank you Sir,
@interviewhappy
@interviewhappy Жыл бұрын
Most welcome @123mutahir
@kumaxFPS
@kumaxFPS Жыл бұрын
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)
@imoniiii
@imoniiii 6 ай бұрын
please make with like this for react .
@AradhanaTurkar-pr9sv
@AradhanaTurkar-pr9sv Жыл бұрын
Sir I have combine mock on html,css,js can u make video on this please sir
@interviewhappy
@interviewhappy Жыл бұрын
Soon I will share HTML questions.
@AradhanaTurkar-pr9sv
@AradhanaTurkar-pr9sv Жыл бұрын
@@interviewhappy thank u so much sir🙏
@rekhagavhane-e4t
@rekhagavhane-e4t Жыл бұрын
Very nice video!!
@interviewhappy
@interviewhappy Жыл бұрын
Thank you very much! @user
@vinamrasangal8436
@vinamrasangal8436 5 ай бұрын
thank you so much sir
@interviewhappy
@interviewhappy 3 ай бұрын
Most welcome
@dizzgamers1878
@dizzgamers1878 3 ай бұрын
Most of the MNC companies are requested not to use inbuild function ...
@NikhilSingh-pb2jg
@NikhilSingh-pb2jg 8 ай бұрын
First question.. Logic for doing in short way is wrong as after splitting using " " , we need to loop and then reverse.
@saikumar7247
@saikumar7247 Жыл бұрын
sir plzz create a video on react js coding interview also
@yadunandan3684
@yadunandan3684 Жыл бұрын
Will they ask these questions for 2+ years experience employee also?
@interviewhappy
@interviewhappy Жыл бұрын
Yes, they can.
@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...
@_d_e_e_p_u_l_u_
@_d_e_e_p_u_l_u_ Ай бұрын
is all the questions come for interviews is same as the above questions can anyone tell me please
@pradeeph4764
@pradeeph4764 9 ай бұрын
Sir , execute in vs also
@rajkirankelangi5751
@rajkirankelangi5751 5 ай бұрын
please make top 100 js coding questions. guys hit like buttom 🔘✅🔳
@priyankasaini7204
@priyankasaini7204 11 ай бұрын
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));
@naveentech3837
@naveentech3837 Жыл бұрын
Good
@interviewhappy
@interviewhappy Жыл бұрын
Thanks @ naveen
@OCEMTechZone
@OCEMTechZone Жыл бұрын
🎉
@interviewhappy
@interviewhappy Жыл бұрын
Thankns
@ILiusion_world
@ILiusion_world Жыл бұрын
sir plz put the last question answer
@vardhinenikishore5667
@vardhinenikishore5667 Жыл бұрын
Sir, Please do promises, async and await coding concepts and React interview questions, Mor helpful preparing the interview questions
@jyotighali8002
@jyotighali8002 9 ай бұрын
how can I run and test it
@nayiriya1921
@nayiriya1921 11 ай бұрын
Sir please make a video in hindi
@interviewhappy
@interviewhappy 10 ай бұрын
Sure Soon
@nayiriya1921
@nayiriya1921 10 ай бұрын
@@interviewhappy sir aapke KZbin series se html,css,bootstrap, JavaScript and react ke questions solve kare to itna fresher/intern Front-End developer interview ke liye enough he?
@sandeeprathore7994
@sandeeprathore7994 Жыл бұрын
Sorry but i cant get the Duplicate element question
@manojhk7469
@manojhk7469 Жыл бұрын
join is not working sir
@giantbush4258
@giantbush4258 10 ай бұрын
These are fun to practice. That said these are not enough for first round. So i kindly disagree.
@divyanshusingh4293
@divyanshusingh4293 3 ай бұрын
Sir plz improve ur english its really hard to get through😅
@interviewhappy
@interviewhappy 3 ай бұрын
Photo mai mundi udhr ghuma ke sunega to kaise smjh aaegi bhai
@kaushalpatel2284
@kaushalpatel2284 Ай бұрын
@@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 20 күн бұрын
Epic reply 😂​@@interviewhappy
@HangOut-BK
@HangOut-BK 4 ай бұрын
//*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 4 ай бұрын
Remainder* , not reminder Sorry I have to. It’s like a disease 🦠
@engineersINnight
@engineersINnight Жыл бұрын
Nice
@interviewhappy
@interviewhappy Жыл бұрын
Thanks @abhay
JavaScript Scenario Based Question and Answers.
15:20
Interview Happy
Рет қаралды 23 М.
Creating .Net Core Microservices using Clean Architecture
26:02
Rahul Sahay
Рет қаралды 22 М.
Long Nails 💅🏻 #shorts
00:50
Mr DegrEE
Рет қаралды 17 МЛН
Ice Cream or Surprise Trip Around the World?
00:31
Hungry FAM
Рет қаралды 22 МЛН
Top 25 JavaScript Interview Questions for Beginners
50:26
Interview Happy
Рет қаралды 383 М.
Coding Interviews Be Like
5:31
Nicholas T.
Рет қаралды 6 МЛН
10 JavaScript Interview Questions You HAVE TO KNOW
13:41
James Q Quick
Рет қаралды 72 М.
Top 100 JavaScript Interview Question and Answers - HINDI
4:57:11
Interview Happy
Рет қаралды 113 М.
Top 100 JavaScript Interview Questions and Answers
3:00:42
Interview Happy
Рет қаралды 330 М.
Top 5 JavaScript Interview Questions with Answers!
29:33
ProCodrr
Рет қаралды 15 М.