JavaScript Practice
Study all questions and answers at your own pace
What is closure in JavaScript and how is it used?
Explain the event loop in JavaScript and how it handles asynchronous operations.
Explain the difference between == and === in JavaScript.
Explain prototypal inheritance in JavaScript.
What is hoisting in JavaScript?
What are the different data types available in JavaScript?
Explain the difference between null and undefined.
What is the purpose of the 'use strict' directive?
What are template literals and how do you use them?
What is the difference between Arrow Functions and Regular Functions?
Explain 'this' keyword behavior in JavaScript.
What is the difference between call, apply, and bind?
What is a Promise in JavaScript?
Explain async/await and how it relates to Promises.
What is destructuring assignment in JavaScript?
What is the difference between the Spread operator and the Rest parameter?
Explain the concepts of Shallow Copy vs Deep Copy.
What are Higher-Order Functions?
Explain Array reduction using the reduce() method.
What is the Temporal Dead Zone (TDZ)?
What is the difference between Object.freeze() and Object.seal()?
What are Map and Set objects in JavaScript?
What are WeakMap and WeakSet, and how do they differ from Map and Set?
Explain the concept of Debouncing.
Explain the concept of Throttling.
What is Event Bubbling and Event Capturing?
What is Event Delegation?
Explain Currying in JavaScript.
What are Generator functions and how do they work?
What is the difference between commonJS modules and ES modules?
What is a Proxy object in JavaScript?
Explain the concept of Reflect API.
What is the purpose of the Symbol data type?
Explain the difference between a macro-task and a micro-task.
What is the pipeline behavior of queueMicrotask()?
What is the difference between Object.keys(), Object.values(), and Object.entries()?
Explain NaN in JavaScript and how to safely check for it.
What is the difference between operational error handling using try/catch vs Promise .catch()?
What is functional composition?
Explain pure functions and their advantages.
What is the purpose of the option object 'once' in addEventListener?
Explain factory functions vs constructor functions.
What are the structural differences between arrays and array-like objects?
What is the difference between Object.defineProperty() and direct property assignment?
Explain the concept of Currying vs Partial Application.
What is a memory leak in JavaScript and what are common causes?
Explain the purpose and behavior of the Void operator.
What is the difference between an Expression and a Statement in JavaScript?
Explain the concept of Memoization.
What is the difference between Function Declarations and Function Expressions?
Explain the behavior of Promise.all() vs Promise.allSettled().
What is the purpose of the Object.assign() method?
Explain the difference between deep freezing and shallow freezing an object.
What are tag functions in template literals?
Explain the concept of Method Borrowing in JavaScript.
What is the purpose of the Navigator API in the browser?
Explain the behavior of JavaScript's automatic semicolon insertion (ASI).
What is the difference between synchronous and asynchronous code execution?
What is the difference between a URL and a URI?
