Tip 1: Initially, focus on mastering JavaScript fundamentals.
Tip 2: Gradually learn TypeScript and other relevant libraries.
Tip 1: Have at least one strong web development project on your resume.
Tip 2: Do not include anything on your resume that you cannot explain.



Fn = F(n-1) + F(n-2)



1. Day is represented as {"1st", "2nd", "3rd", "4th",”5th”, ...,”29th”, "30th", "31st"}.
2. Month is represented as {"Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"}.
3. Year is represented as {2020,2021 etc}
1. YYYY is a 4 digit year.
2. MM is a 2 digit month.
3. DD is a 2 digit day.
1. The given dates are guaranteed to be valid.
2. If you can’t represent a month in 2 digits then append 0 in front of the month. Eg: if the month is Jan, represent it as 01 and not as 1 in the answer.
3. If you can’t represent a day in 2 digits then append 0 in front of the day. Eg: if the day is 5, represent it as 05 and not as 5 in the answer.
Implement a function in JavaScript that retries a promise N times with a delay between each attempt.
Create a retryWithDelay function that repeatedly calls an API until the promise resolves or the maximum retry limit is reached. A delay should be applied between each retry.
Function Signature:
retryWithDelay(apiCall, maxRetries, delay)
Parameters:
Return Value:



Input: 'n' = 7, 'x' = 3
'arr' = [1, 1, 1, 2, 2, 3, 3]
Output: 2
Explanation: Total occurrences of '3' in the array 'arr' is 2.
You are given an array of 1000 API functions, where each function returns a Promise.
Implement a function that executes these APIs in batches of a given size. All APIs in a batch must run in parallel, and the next batch should start only after the current batch completes. The results must be returned in the same order as the input APIs.
Function Signature:
async function callApisInBatches(apis, batchSize)
Parameters:
Return Value:

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?