LTI Mindtree React.js Developer Role - Interview Questions

-How would you center a div inside a div?

-Tree shaking and bundling in modern JavaScript applications.

-Have you worked with any state management libraries like Zustand?

-Techniques for React performance optimization.

-Write a function to check if a string is a palindrome without using the reverse string logic.

-What is the output of console.log(this)?

-Difference between arrow functions and regular JavaScript functions.

-Write a program to create a promise and an async/await function.

-Several output-based questions on var keyword, hoisting, and async/await.

- What are closures in JavaScript?

- If you receive 5000 records in one API call, how would you efficiently display them in a dropdown?

- How is async/await different from promises?

- What do the caret (^) and tilde (~) signs represent in package.json?

- What are dev dependencies in package.json?

- What is Node.js and the event loop?

- Can you explain hoisting in JavaScript? For example: output of the below code.

a = 10;

console.log(a);

var a;

- How does 'this' behave in Node.js? Is it the same as in a browser console?

- Write code for mul(2)(3)(4) = 24.

- Have you worked with Axios?

-What are interceptors in Axios?

- Why do we need the useRef hook in React?