I was interviewing for intern role. The interviewer asked me to demonstrate my projects. He asked me to do error handling with a project and was allowed to use google. I had to use mongoose for this. I was stuck at the beginning but after sometime I solved the issue. He wanted to know the reason why I was stuck and why I was getting the error. Even after going through the mongoose docs I couldn't figure it out and then he explained me that.
I used findOne for query. He said that the callback err argument returns error if there is error in executing the query and not if the result is null. This is mentioned in docs but I was unable to find.
I face an interview last month where I had a machine coding round. The difficulties I faced :
1. Couldn't finish the question within given time so I had to explain logic instead of writing code.
2. Interviewer didn't allow to check for syntax online.
3. Couldn't explain some theoretical concepts which I was using it regularly. Like DOM.
Thanks for sharing, Vaibhav.
if anyone doesn't want to learn backend only want to focus on frontend ?? can they focus only on interviews??
I was interviewing for intern role. The interviewer asked me to demonstrate my projects. He asked me to do error handling with a project and was allowed to use google. I had to use mongoose for this. I was stuck at the beginning but after sometime I solved the issue. He wanted to know the reason why I was stuck and why I was getting the error. Even after going through the mongoose docs I couldn't figure it out and then he explained me that.
What did he explain?
I used findOne for query. He said that the callback err argument returns error if there is error in executing the query and not if the result is null. This is mentioned in docs but I was unable to find.
These Kind of Newsletters are ❤️️❤️️❤️️