Tip 1 : Focus on building concepts.
Tip 2 : Interviewer usually focuses on your knowledge of core Javascript, not any framework.
Tip 3 : If you usually answer DSA question's there are lot of chances of getting selected, more if you stuck in any problem you can ask for hins from the interviewer
Tip 1 : Have at least 2 or 3 quality projects which are unique.
Tip 2 : Either you should have a good past experience or good achievements such as winner of any hackathon.
Given a rest API, you need to show all the banks available in the city user has opted for.
Tip 1 : They judge you on your coding style, and use good coding practices such as hooks and all.
Tip 2 : Try using basic CSS instead of any external CSS framework.
Tip 3 : Use table with pagination for showing the results and try not use any external library.
The interviewer focused on my core Javascript principles and my problem-solving skills. The problems were of hard level and were on all the javascript fundamentals.
What is the output of this code snippet?
console.log('start');
const promise1 = new Promise((resolve, reject) => { console.log(1) resolve(2) console.log(3)})promise1.then(res => { console.log(res)})console.log('end');
the resolve method does not interrupt the execution of the function. The code behind it will still continue to execute. So the output will be start , 1 , 3, end and 2.
What is the output of this code snippet?
console.log('start')const fn = () => (new Promise((resolve, reject) => { console.log(1); resolve('success')}))console.log('middle')fn().then(res => { console.log(res)})console.log('end')
The core concept to solve this problem is -
1) Execute synchronous code first, then asynchronous code.
2) Synchronous code is executed in the order in which it was called.
So the output result is start , middle, 1 , end and success.
Can you tell what is promise chaining? Explain it with a practical use case.
Promise chaining occurs when the callback function returns a promise. It allows you to chain on another then call which will run when the second promise is fulfilled. Catch can still be called to handle any errors that might occur along the way.
What will the code below output to the console and why?v
ar myObject = { foo: “bar”, func: function() { var self = this; console.log(“outer func: this.foo = ” + this.foo);
console.log(“outer func: self.foo = ” + self.foo);
(function() { console.log(“inner func: this.foo = ” + this.foo);
console.log(“inner func: self.foo = ” + self.foo);
}());
}};
myObject.func();
outer func: this.foo = bar
outer func: self.foo = bar
inner func: this.foo = undefined
inner func: self.foo = bar
In the outer function, both this and self refer to myObject and therefore both can properly reference and access foo.
In the inner function, though, this no longer refers to myObject. As a result, this.foo is undefined in the inner function, whereas the reference to the local variable self remains in scope and is accessible there.
function foo() { let a = b = 0; a++; return a;}foo();typeof a; // => ???typeof b; // => ???
Type of a is undefined
but type of b is number
as the b variable is defined in the global scope ie, the window.
The interviewer focused on my Projects and what was my approach to product design.
Why did you use mongo DB for the project?
Since mongo DB is a noSQL database.
Its flexible schema makes it easy to evolve and store data in a way that is easy for programmers to work with
How will you scale your nodeJS application?
The application written by me was in a single service and in order to scale I must have used java spring or written microservices in NodeJS.
It was a managerial round. The interviewer tried to understand whether I am a culturally fit candidate or not.
What do you expect as an SDE and what should your manager accept from you?
Tip 1 : Try to be neutral.
Tip 2 : Be honest and give a diplomat answer.
Tip 3 : don't try to get over-excited. More the people get rejected on this round.

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
What is recursion?