Tip 1 : Learn about Execution Context, Promises in JS
Tip 2 : Learn about indices, Difference between different databases
Tip 3 : Error handling and Exceptions
Tip 1 : Put in what you’ve done and not what you could have done.
Tip 2 : Keep it short and simple
This round mainly consisted of some questions on advanced JS topics like Execution Context, Callback queue, Micro task queue, Promises, etc.
The question was to find the output of the program. The code consisted of setTimeout vs promise output predictions.
In a sequential set of statements, output from a Promise would be console logged first as Promises are assigned to the microtask queue and set timeouts are assigned to callback queues and the microtask queue has more precedence than the callback queue.
This round was more technical compared to the previous one. The interviewer was a senior developer. If questions were not answered, answers would be given/explained.
What are indexes?
How do you know which field should you index?
What are its advantages and limitations?
How do you limit the concurrency level in Promise.all()?
You can use the async library and set the concurrency level using that
What are some aggregate operators in MongoDB?
How do you prevent a Node app from crashing?
How do you handle exceptions?
This round was mainly to assess my experience level, roles, and responsibilities from my previous company. Salary negotiations also happened here.
Tell me about previous experiences.
Why do you want to join us?
How much salary are you expecting?
Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
How do you write a single-line comment in C++?