NodeJs Interview | NodeJs Interview Questions | NodeJs Questions
HTML-код
- Опубликовано: 3 окт 2024
- In this session I am going to record my interview of node JS.
Here will go through common interview questions that are essentials for you to know before going for the interview.
If you are preparing for NodeJS Backend development JOB for MNC's then here are few set of questions that you need to prepare and I hope this will help you a lot.
#NodeJS #Inteview #maheshkariya
*Please consider to subscribe if you enjoyed ok 👍*
havent got a chance to use this inside arraow function what a joke.. U cant use this inside arrow function
@@codingsingh4156 Yes it was true i am a java/dotnet/php developer so node was new for me at that time
Firstly, appreciate your guts in posting this interview. Not many are open to show their flaws.
Thanks
1) promise
2) async await
3) get / post
4) Authentication method
5) create post api
6) middleware
7) difference between call & bind
8) closure
9) spread operator javascript
10) javascript block scopes
11) benefits of arrow function
12) differents between normal function and arrow function
13) scope of 'this' in arrow function and normal function
14) return third highest value and third lowest element in an array with out using array index
thank you very much bro
Incredibly painful to watch.
Not because of Masheh, he was polite and brilliant but hard to watch because of the interviewer.
I am an Indian who is living in Australia and working here in the IT industry as a developer.
But in Australia, the interviewer would not survive 1 week because of his personality.
He was unbelievably rude in my opinion.
Mahesh provided genuine, honest, and well though answers, and instead of replying like a human this person only said "got u" like 10 times.
It may be possible that you guys think I am being over sensitive but if you don't follow the basic etiquette like saying, "Please, Thank you, Welcome, Great, Wonderful" then finish.
U deserved better Mate
Man this interviewer was way better than the one whom I had to face couple of days back. I solved the problem presented to me and I was happy I could solve it but then he said on my face that if he had to rate my code then he would give me a 3 out of 10 because the code is not testable. I was devastated.
I think "Got you" is just the interviewer's way to say "I understand what you're saying" not really "I caught you making a mistake".
I felt the same, Mahesh did well, the interviewer may be had a bad fight with his wife that's why not able to support mahesh properly
This is a real interview question, I can feel the tension I felt in my interviews too. Thanks for sharing this, it is helpful
Actually, the strategy you apply is a defensive driving interview, people make mistakes, and learn things if you are doing great code without mistakes then you are just remembering things you are not experiencing. I think experience is the name of learning from failure. You did great. By the way thanks.
Thanks
Yes we need more technical interview we really enjoyed ur videos. In the end appriciate your guts in this posting this video. Highly appreciated bro 👏👏💯💯
Thank you! Will do!
This was one of the most useful interview videos I have ever saw. Many mock interviews are made previously informing the participants of the questions, so they bring perfectly tailored responses, and rarely show how to manage when you make a mistake and is not really sure what to say. This was very enlightening. Thank you for sharing and not disguising the reality of an interview.
i have quite experience in node js and javascript, i think you did great, last question where you were told to find third largest and smallest, that too was good, no one writes codes that gives perfect result first time, if they do then they have done it before.
if you didn't selected but i appreciate you bc your confidence, way of talking and english communication skills are so exceptional. Thanks for sharing with us....
Awesome Mahesh. You should ask at least 1 question at the end of the interview, it could be anything from the incoming project that you will work on if you pass, or their team size, common tech stack they use in the company, ...
Thanks for suggesting
I'll use this suggestion in my next interview. Skipping the what kind of work your company does because it might be better if you already research about the kind of work a company does before appearing for the interview.
Interviewer : u can't Console like that
Guy : hold my console now 🤣🤣😂👍
Thanks for the video. I thought it is just me who gets nervous and make mistakes on basic things. But glad to see that it is normal. Please let us know if you got the job or not. And I liked the way you handled each and every question. Good job mate.
Yes I got job here and now I am feeling like I am in my dream company
AAlso don’t forget to subscribe Okay
@@maheshkariya wow that's amazing. Congratulations mate.
Kya baat hai yaar mast interview experience! I think itna humble bana hain mujhe apne interview mei. Question aaye na aaye effort toh sahi hai.
You have serious balls men. gajab aadme ho bhai tum, best of luck and have great future, happy coding
Thanks 🙏
Hats off bro...! I am going to give an interview for nodejs dev also. You're right "Basics are the most important thing". Thanks for this.
You’re so brave man! Thank you for sharing ;) 👏
Thanks, And don't forget to subscribe if you haven't already Okay
It takes alot of guts to upload an interview video hats off dude.
Good work, Mahesh. Takes a lot of guts to share this! Learned a lot
Thanks
thank you Makesh for your help, I think the last challenge can be solved with: const [,,min3] = array.reverse().sort();
we need more technical interviews.We love it.!Thank you.'❤❤
Okay I will try to record more interviews from onwards
Thanks for uploading this. Many of the questions asked I use those terms on a daily basis but if you ask me personally I can barely define what they are. Anyways good luck !
Thanks, And don't forget to subscribe if you haven't already Okay
variable scope & concept of this keyword are very important in Javascript.
you answered node js but the interviewer asked basic javascript question, this looks bad when you are doing very good in the interview.
also the debugging skills are MOST important for any developer!!
So true
Wow good interview I really enjoyed watching it.Waiting for second round.
Second round was about general questions related to salary and all
dope it helped !! I also intend to give node js aws interview in a month or so !
Glad you liked it dont forget to subscribe ok
The interviewer was extremely rude, Mahesh did a very good job at answering all questions and "handled" the heat really well
very true
How was he rude? Just curious because I don't know the real standard
Bro what if we don't give expiry duration in token then how long that token will survive
1) will it stay until server crash. .. or
1) oor 7 days
...
??
Thank you so much bro, for this❤️
It's helpful to me.... thank you Mahesh 👍
thanks
Love this interview. ❤️❤️❤️
Thank you very much Sir for sharing this awesome video ☺️. Please can you tell me what kind of questions asked in second round? And yes I subscribed your informative channel 😇
Will upload soon
Thanks
@@maheshkariya Thank you SIR
Thank you Mahesh for sharing this
Thanks Mahesh! For making this vedio.
I am very happy in sharing this code snippet. I almost tried for 2-3 hours last night after watching you interview. I got greatest number logic but I didn't get smallest number logic. Being a 2.6 years experience in javascript, I lost hope and confidence but finally in the early morning I got it.
***The thing that motivates is never give up in logical coding.***
//---------------------------------------------------------------------------
//***3rd largest ele and 3rd smaller ele ***
let arr = [3, 4, 1, 6, 8, 5, 0, 3]
function get3largestEle(arr) {
let max1 = max2 = max3 = 0
arr.forEach(ele => {
if (max1 < ele) {
max3 = max2
max2 = max1
max1 = ele
} else if (max2 < ele) {
max3 = max2
max2 = ele
} else if (max3 < ele) {
max3 = ele
}
console.log("--------------")
console.log("max1", max1)
console.log("max2", max2)
console.log("max3 greatest", max3)
})
}
get3LargestEle(arr)
//--------------------------------------------------------------------
arr = [3, 4, 1, 6, 8, 5, 0, 2]
function get3smaller(arr) {
let min1 = min2 = min3 = 100000
arr.forEach(ele => {
if (ele < min1) {
min3 = min2;
min2 = min1;
min1 = ele
} else
if (ele < min2) {
min3 = min2
min2 = ele
} else if (ele < min3) {
min3 = ele
}
console.log("--------------")
console.log("min1", min1)
console.log("min2", min2)
console.log("min3 smallest", min3)
})
}
get3smaller(arr)
//----------------------------------------------------------------------------
I sent this code for people like me who gave up last night.🤣
Thanks a lot for solution...
Can you guys think solving by recursion ..that will be easy and strait as compared to this
// return third highest value and third lowest element in an array with out using array index
//First way
const arr = [5,2,4,9,1,7,3]
const result = arr.sort()[2]
console.log(result[2],result[result.length-3])
//Second way
const arr = [5,2,4,9,1,7,3];
console.log("max no " + arr.sort()[2] + "and min no " + arr.sort((a,b)=>b-a)[2])
Great work. I really appreciate it
Simply awesome buddy keep it up.... Long way to go
Thanks
I was nervous when you were doing the problem 😂
😂
Are interviewers usually this rude during interviews in India?
No he is not rude actually he is very good guy it was technique of interviewer to get to know your behaviour.
He's not rude IMO
Man this interviewer was way better than the one whom I had to face couple of days back. I solved the problem presented to me and I was happy I could solve it but then he said on my face that if he had to rate my code then he would give me a 3 out of 10 because the code is not testable. I was devastated.
For the last question, a possible solution is:
function minmax3(arr) {
const set = new Set(arr);
if (set.size < 3) return null;
const reducedArr = [...set];
const sortedSet = reducedArr.sort((a, b) => a - b);
const minVal3 = sortedSet[2];
const maxVal3 = sortedSet[sortedSet.length - 3];
return [minVal3, maxVal3];
};
But the interviewer said not to use sort function
without using index
const calc = (array) => {
let max1 = 0;
let max2 = 0;
let max3 = 0;
let min1 = 1000,
min2 = 1000,
min3 = 1000;
array.forEach(e => {
if(e>max1){ max3 = max2; max2 = max1; max1 = e; }
else if (e>max2){ max3 = max2, max2 = e; }
else if(e>max3) max3 = e;
if (e
Good interview, thanks a lot. But I think will need to prepare a little more,
Today i am also having 4 years experience....but I am more nervous than you 😢
const calc = (array) => {
let max1 = 0;
let max2 = 0;
let max3 = 0;
let min1 = 1000,
min2 = 1000,
min3 = 1000;
array.forEach(e => {
if(e>max1){ max3 = max2; max2 = max1; max1 = e; }
else if (e>max2){ max3 = max2, max2 = e; }
else if(e>max3) max3 = e;
if (e
Beneficial video.
Glad you enjoyed
He is very rude and you rocked it.
Thank you.
Its really helpful for us
Thanks
Thank you very much for uploading your interview
Thanks 🙏 and don’t forget to subscribe if you enjoyed Okay 👍
thank u soo much sir
Really appreciate sir..thanks alot
Always welcome
Very Informative Thanks.
Thanks bro
Thankyou for posting this.
Thanks
Answered the last question with unique approach 🙌 and you mocked him in the promise part that was good payback according to his behaviour 😁😁
What's the issue with the interviewer, he was so rude.
you earned my respect and sub
Thanks
For the last question this must be Mahesh had it in his mind
let arr = [10,3,11,5,60,800,-1,0,1,4];
let min1 = min2 = min3 = Number.POSITIVE_INFINITY;
let max1 = max2 = max3 = Number.NEGATIVE_INFINITY;
arr.forEach((val)=>{
if(val < min1)
{
min3 = min2;
min2 = min1;
min1 = val;
}
else if(val < min2)
{
min3 = min2;
min2 = val;
}
else if (val < min3)
{
min3 = val;
}
if(val > max1)
{
max3 = max2;
max2 = max1;
max1 = val;
}
else if(val > max2)
{
max3 = max2;
max2 = val;
}
else if (val > max3)
{
max3 = val;
}
});
console.log("Min " + min1 + "," + min2 + "," + min3);
console.log("Min " + max1 + "," + max2 + "," + max3);
Thanks a lot for posting the video
Thanks, and Don't forget to subscribe bhai If you havent
Hey mahesh Can you please share with us What type of Questions are asked in Technical Round.
Yes Yes I have list of all questions from mncs will try to add video on saturday
Payment not happening for PDF
so what is the result , do you get the job?
Yes
@@maheshkariya really glad to hear , congrats
Thanks for sharing!
Thank you for the video. It will be really helpful if you please tell how you prepared for the nodejs interviews..
Definitely I will add video very soon
Appreciate your guts.
Thanks
@@maheshkariya can I have your number ?
@@arsri7167 +91 7066650006
Hi Mahesh was there any second round after this and any DB questions asked in interview?
Your voice not clear, can you impove it?
Last question answer
const arrayyy= [1,5,6,8,9, 3, 12];
let MinArray=arrayyy. sort (function (a, b){
return a - b
});
const Get3rdElementWithoutIndex=(arr)=›{
let flag=0;
return arr. find (a=>{
flag++3
if(flag===3){
return a;
}
});
}
let Min3rdEelemnt=Get3rdElementWithOutIndex (MinArray):
let Max3rdEelemnt=Get3rdElementWithOutIndex(MinArray.reverse());
console. log ("smallest 3rd element:%d
Largest 3rd element :%d*, Min3rdEelemnt, Max3rdEelemnt) ;
Looking into this for first 5 mins, I can say that the interviewer himself isn't passionate enough towards his work
Thank you for your video. Very brave and considerate of you to share this even though you know were not perfect. It felt like I was sitting in the interview with you.
Thanks and don’t forget to subscribe if you haven’t subscribed already Okay 👍
I just want to say that Mahesh you deserve better than this company. I didn't liked this interviewer. He should support you while interviewing you. If these things happening in the interview then imagine how the work environment will be in the company.
BTW he is a good guy, Now we are friends in corporate life we need to act like that in order to check behaviour of person in worst situation 😉
thanks
Please upload next round vedio ..
I forgot to record sorry it was quick and confidential as well, It was just Normal talk about salary and all.
@@maheshkariya do you get selected
@@YashKumar-bc6ei Yes
nice video
Bad interview. Interviewer was rude and I personable and the questions were basically trivia. This points to a bad company culture.
Post the 2nd round interview recording!
I forgot to record
so did you got the job? and what were the next rounds? what did they asked?
General questions like accepted salary and all. and yes i got selected.
@@maheshkariya thanks for this video dude helps a lot
Thanks for watching 👍
@@maheshkariya news mate done with my interview got 10lpa as fullstack dev idk what I'll be doing 🤣
@@SaiSarthik 🎉
//solution
//return third lowest and third highest in the array without using the index
let arr=[1,4,7,2,5,6,3,22,11,10];
console.log(arr.sort((a,b)=>a-b)); //mutates the array
console.log(arr);
console.log(arr.slice(2,3));
console.log(arr.slice(arr.length-3,arr.length-2));
In interview, mostly they don’t want us to use inbuilt methods
Why did't they ask any Data structure releated questions ?
Really helpful bro
Thanks
btw result mai bata raha uh will be rejected in this interview for sure, bhai mai fresher hoon meko almost sare question ke answer aate the, abhi ek mahine huye meko mern start kiye huye, meko opptuinity hi nahi mil rahi jahan apply karo sabko experience chahiye , bhai agar aap koi opptunity dila sakte ho toh please.
I got selected and if you have good network of good people definitely they will appreciate talent without worrying about collage and education
Are these questions for freshers?
thanks
Welcome
upload sheet of commonly nodejs questions aswell
I think company name is Deqode ?
🔥🔥🔥
Nice bhai
35:00 You're lucky the interviewer didn't ask how to find the 10th minimum element =)))
After something we can get 10 position by doing set first
Bro when you said freelancer experience, so what did HR asked to prove freelancer experience?
Nothing
Loved watching this, but this interviewer was not great, it seems that he was trying to catch you out, and tried to act smarter than you. Interviewers should not be like this.
Good
don't use too much of I guess
It is irritating bro
😂 I will take care of this bro
You did a reverse of what was asked. Max instead of min in the end.
Yes, I know
Selected for the company or not?????
Got selected
@@maheshkariya I expected that, you nailed it sir..👍
this question are for freshers
Yes
@@maheshkariya what are the questions asked in round two please make video
@@vaibhavsutar7163 Sure I will update that one as well till then don’t forget to subscribe if you enjoyed okay
@@maheshkariya yes, subscribed
why are you keep downgrading yourself
I was getting bored
i think you did good interview why were you sad about your performance
Actually Muze last wali bat buri lagi thi, you don’t have ambitions wali
@@maheshkariya I think he said 'Anguishes' not 'Ambitions'.
company name decode
Deqode
Bhai itna knowledge to hai aapko kyu aap 8 LPA dekh rahe ho. I think you deseve more salary
Mere kafi problems hai bhai like educational gaps hai 4 Sal ka and koi experience certificate nahi hai ar pahale ka package to sirf 2lpa ka tha ye to thoda achha hi hai, aage dekhte hai kya hota hai ultimate goal to youtuber banne ka hi hai ar Khudka kuch karneka hai. Kam to bas family ke liye kar raha hu.
@@maheshkariya good bro. Best of luck bro . Keep growing bro.
@@yalgaar07 Thanks 🙏
@@maheshkariya Hello . Mujhe bhi Gaps hain . Aapse information aur guidance ke liye help chaiye hogi to aap yahan par hoge na ??
Sure sure I will be replying your all comments Ok
Heavy 🪨
Did you able to clear this Mahesh?
Yes
I mean did you join the company?
Yes, I am currently working in same company.
@@maheshkariya excellent, could you please tell me which camera and software you’re using for making these videos ? And what you do to edit it? It would be much helpful
Sure, I use OBS studio for recording and premier pro for editing and mobile camera for recording vlog with obs.
.
Thanks. .
Unprofessional interviewer.
Oh!
Fgj
Thanks