0
Completed
0%
Progress
0
Starred
What is JavaScript? Explain its role in web development and key characteristics.
Explain the differences between var, let, and const in JavaScript. How do they affect variable scope and reassignment?
What are the primitive data types in JavaScript? Explain the difference between null and undefined.
What are the different ways to define functions in JavaScript? Compare function declarations, function expressions, and arrow functions.
Explain truthy and falsy values in JavaScript. How does type coercion work with equality operators (== vs ===)?
What is hoisting in JavaScript? How does it work with var, let/const, and function declarations?
What are common array methods in JavaScript? Explain map, filter, and reduce with examples.
How do you create and manipulate objects in JavaScript? Explain object literal syntax, property access, and dynamic properties.
How do you select and manipulate DOM elements using JavaScript? Explain methods like getElementById, querySelector, and modifying content/attributes.
How does event handling work in JavaScript? Explain addEventListener, event object, and event propagation basics (bubbling and capturing).
What are Promises in JavaScript? Explain states (pending, fulfilled, rejected) and how to chain them using .then() and .catch().
How does async/await work in JavaScript? Explain how to handle errors with try/catch.
How do you make HTTP requests using the Fetch API? Explain response handling, JSON parsing, and error handling.
How does error handling work in JavaScript using try, catch, finally, and throw? Give an example with asynchronous code.
What are template literals in JavaScript? Explain string interpolation, multi-line strings, and tagged templates.
What is destructuring assignment in JavaScript? Provide examples for arrays and objects.
Explain the spread and rest operators (...) in JavaScript. How are they used in arrays, objects, and function parameters?
How does localStorage and sessionStorage work in web browsers? Explain use cases and limitations.
Compare different looping mechanisms in JavaScript: for, for...of, for...in, forEach, and while loops.
What is the 'this' keyword in JavaScript? How does its value differ in global scope, function context, and arrow functions?
How do you parse and stringify JSON in JavaScript? Explain JSON.parse() and JSON.stringify() with examples.
Explain explicit and implicit type conversion in JavaScript. Provide examples of converting to string, number, and boolean.
What is a closure in JavaScript? Provide a simple example and explain lexical scoping.
How do setTimeout and setInterval work in JavaScript? Explain their asynchronous nature and how to clear them.