[Go to site: main page, start]

0% found this document useful (0 votes)
2 views3 pages

JavaScript Interview Questions

The document contains a comprehensive list of JavaScript interview questions categorized into basic, intermediate, and advanced levels, along with scenario-based questions. It covers essential topics such as data types, functions, event handling, promises, and memory management. This resource serves as a guide for preparing for JavaScript interviews.

Uploaded by

sonamsingh9339
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views3 pages

JavaScript Interview Questions

The document contains a comprehensive list of JavaScript interview questions categorized into basic, intermediate, and advanced levels, along with scenario-based questions. It covers essential topics such as data types, functions, event handling, promises, and memory management. This resource serves as a guide for preparing for JavaScript interviews.

Uploaded by

sonamsingh9339
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

JavaScript Interview Questions

BASIC JAVASCRIPT QUESTIONS

1. What is JavaScript?

2. What are the different data types in JavaScript?

3. Difference between var, let, and const

4. What is hoisting?

5. What is a closure?

6. What is the difference between == and ===?

7. What is null vs undefined?

8. What are primitive vs non-primitive types?

9. What is typeof operator?

10. What is NaN?

11. What is the global object in JavaScript?

12. What is a function in JavaScript?

13. What is an arrow function?

14. Difference between function declaration and function expression

15. What is this keyword?

INTERMEDIATE JAVASCRIPT QUESTIONS

16. What is event loop?

17. What is call stack?

18. What are callbacks?

19. What is a promise?

20. What is async/await?

21. Difference between synchronous and asynchronous code

22. What is setTimeout? How does it work internally?

23. What are higher-order functions?

24. What is map(), filter(), reduce()?

25. What is destructuring?

26. What is spread operator (...)?

27. What is rest operator?

28. What is shallow copy vs deep copy?

29. What is [Link]() and [Link]()?

30. What is debouncing and throttling?


JavaScript Interview Questions

ADVANCED JAVASCRIPT QUESTIONS

31. What is prototypal inheritance?

32. What is prototype chain?

33. Difference between call(), apply(), and bind()

34. What is currying?

35. What are IIFE (Immediately Invoked Function Expressions)?

36. What is memory leak?

37. What are generators?

38. What is event delegation?

39. What is module system in JavaScript? (CommonJS vs ES Modules)

40. What is strict mode?

SCENARIO-BASED QUESTIONS

41. Closure Scenario

You want a counter function that remembers previous value.


How will you implement it?

42. Async Issue

Multiple API calls depend on each other.


How will you handle it?

43. Performance Issue

Page becomes slow due to many event listeners.


What will you do?

44. Debouncing Scenario

Search input triggers API on every keystroke.


How will you optimize?

45. Data Transformation

You have array of objects.


Convert it into grouped data (like category-wise).
JavaScript Interview Questions

46. Memory Leak Scenario

App performance degrades over time.


How will you debug memory leaks?

47. this Context Issue

Function loses this context in callback.


How will you fix it?

48. Deep Copy Scenario

You need to clone nested object safely.


How will you do it?

49. Rate Limiting

User clicks button multiple times quickly.


How will you prevent multiple API calls?

50. Real-time App Scenario

Building chat app / collaborative editor.


How will you manage async updates and state consistency?

You might also like