0% found this document useful (0 votes)
4 views4 pages

Complete JavaScript Interview Guide 4 To 7 Years

This document is a comprehensive JavaScript interview question bank tailored for candidates with 4-7 years of experience. It covers core fundamentals, functions, asynchronous JavaScript, objects and prototypes, ES6+ features, array and string methods, DOM and browser interactions, error handling, performance considerations, coding implementations, and tricky output questions. Each section includes specific topics and questions to assess the candidate's knowledge and skills in JavaScript.

Uploaded by

Shubham Pansare
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)
4 views4 pages

Complete JavaScript Interview Guide 4 To 7 Years

This document is a comprehensive JavaScript interview question bank tailored for candidates with 4-7 years of experience. It covers core fundamentals, functions, asynchronous JavaScript, objects and prototypes, ES6+ features, array and string methods, DOM and browser interactions, error handling, performance considerations, coding implementations, and tricky output questions. Each section includes specific topics and questions to assess the candidate's knowledge and skills in JavaScript.

Uploaded by

Shubham Pansare
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

Complete JavaScript Interview Question Bank (4–7

Years Experience)

CORE FUNDAMENTALS

- What is JavaScript? Explain runtime behavior.


- Explain data types in JavaScript.
- Primitive vs Reference types.
- What is hoisting?
- var vs let vs const.
- What is TDZ?
- What is scope?
- What is lexical scope?
- What is closure?
- What is execution context?
- What is call stack?
- What is garbage collection?

THIS & FUNCTIONS

- Explain 'this' in all scenarios.


- Implicit vs explicit binding.
- call vs apply vs bind.
- Arrow vs normal function.
- What is IIFE?
- What is currying?
- What are higher-order functions?

ASYNC JAVASCRIPT

- Explain Event Loop.


- Microtasks vs Macrotasks.
- What is callback hell?
- What is Promise?
- Promise chaining.
- [Link] vs race vs allSettled.
- What is async/await?
- Error handling in async/await.

OBJECTS & PROTOTYPES

- What is prototypal inheritance?


- prototype vs __proto__.
- What happens when using 'new'?
- Shallow vs deep copy.
- How to deep clone object?
- What is [Link]?

ES6+ FEATURES

- What is destructuring?
- Spread vs Rest operator.
- Optional chaining.
- Nullish coalescing.
- Modules in JS.

ARRAY & STRING METHODS

- map vs filter vs reduce.


- forEach vs map.
- find vs filter.
- How to flatten array?
- Remove duplicates from array.

DOM & BROWSER

- Event bubbling vs capturing.


- What is event delegation?
- localStorage vs sessionStorage.
- What is CORS?
- What is debounce?
- What is throttle?

ERROR HANDLING

- try/catch/finally.
- Custom errors.
- Error propagation in promises.

PERFORMANCE

- What causes memory leaks?


- What is lazy loading?
- What is tree shaking?

CODING IMPLEMENTATIONS

- Implement debounce.
- Implement throttle.
- Implement deep clone.
- Implement bind polyfill.
- Implement Promise polyfill.
- Flatten nested array.

TRICKY OUTPUT QUESTIONS

- Output with var in loop & setTimeout.


- Output with closures.
- Output with arrow function & this.
- Output with Promise + setTimeout.
- Output with async/await.

You might also like