Tip 1: Keep giving interviews and try to practice the questions that you are unable to answer in the interview.
Tip 2: Practice at least 1 hour daily on some of the online programming websites like Leetcode/CodeStudio.
Tip 3: Daily read some articles or watch tech videos to get up to date in the market.
Tip 1 : Resume should be descriptive
Tip 2 : Mention all projects with descriptions and technology used
Tip 3 : Mention experience clearly
Because I was giving an interview for the SDE-2 role. In the first round, I encountered advance JS questions like the concept of this, the difference between the arrow and normal function, variable value and reference, polyfills(map, reduce, filter, debounce, throttle, compose), promisify, currying, coluser, hoisting and some UI problems.
The interviewer was so polite and he was giving little hints whenever I was stuck somewhere.
Write a common async function for the promisify function
I know asynchronous programming so I first made a function that accept 3 parameters and based on the condition call the callback coming from the parameter. After I made another function that returns the function and that function returns the promise.
Write a memorized function to cache the result returned from the function.
I just made an object and took the result as a key and stored the value corresponding to the key and before insertion, I check from the object if the result is present in the object or not. It is basically a kind of hashing.
Write a compose function, which will accept functions as a parameter and return the combined result from all the functions.
I just made the 3 functions and which are returning something then I made compose function take args parameter, which gives all the passed parameters in the form of an array. Then I reverse the array and pass the output of the current function to the next function and at last return the final output.
This round focused more on advanced JS concepts, React and React-Redux knowledge
Explain “This” keyword and its significance in JS
They give an object which contains functions(arrow and regular) and values. They want me to tell the output of the console written inside the function with a different context.
Because in JS this regular and arrow function works differently they try to manipulate students on it.
Write a Throttle polyfill for a function in JS
Before writing the polyfill of any function. You should have a basic understanding of how that function works.
Basically, the throttle is when you are calling a function at a regular interval. So he wants to call for the first at last.
So In the normal throttle function, I took a variable to keep track of the first run if the first run is not defined I call the callback otherwise clear the timer and set the timeout to call the function for the given time.
Write a custom hook in react.
Make a function with state and effect and return the result in the form of an object.
Advance Js questions and Polyfills



‘S’ = brutegroot
The most frequent characters are [o, r, t]. All of these characters appear 2 times each.
As among all the options, ‘o’ is lexicographically smallest. So the answer is ‘o’.
Hence output will be o.
I solved it with hash mapping. I spilt the string into an array and keep track of every char and count in the obj. If char is not in the obj I initialized the char count with 1 else I increase the count by 1. After calculation, I found the max value in the object.
Explain deepClone polyfill
First I checked the type of passed params and based on the type recursively called the same function and assigned the value to the new object.
This round is generally to know the candidate's mindset for the position, Notice period, whether holding an offer or not and salary discussion. Also, they explain the benefits and the process.
Tell me something not there in your resume.
If you get this question, it's an opportunity to choose the most compelling information to share that is not obvious from your resume.
Example :
Strength -> I believe that my greatest strength is the ability to solve problems quickly and efficiently, which makes me unique from others.
Ability to handle Pressure -> I enjoy working under pressure because I believe it helps me grow and become more efficient.
Tip : Emphasize why you were inspired to apply for the job. You can also explain that you are willing to invest a great deal of energy if hired.
These are generally very open-ended questions and are asked to test how quick wit a candidate is. So there is nothing to worry about if you have a good command over your communication skills and you are able to propagate your thoughts well to the interviewer.

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
How do you remove whitespace from the start of a string?