Question Bank
3705 approved questions from the community
Debouncing delays function execution until after a specified time has elapsed since the last call.
The querySelector() method returns all matching elements.
Service Workers can intercept network requests and enable offline functionality.
Function declarations are hoisted with their full definition.
What does Function.prototype.bind() return?
Object.seal() prevents adding or deleting properties but allows modification of existing properties.
The map() method modifies the original array.
await can only be used inside async functions.
What is the difference between debouncing and throttling?
Array.prototype.slice() modifies the original array.
What is the DOM?
Tree shaking removes unused code during the build process.
String methods like toUpperCase() modify the original string.
window and document are the same object.
Array.prototype.splice() modifies the original array.
Array.prototype.includes() is case-sensitive for strings.
What does Array.prototype.find() return?
Regular expressions in JavaScript can match patterns across multiple lines.
What does Array.prototype.some() return?
What does Array.prototype.every() return?