Question Bank
1085 approved questions from the community
What are default parameters?
What does console.log() do?
What does localStorage do?
What is the difference between localStorage and sessionStorage?
What does Array.prototype.push() return?
What does Array.prototype.pop() do?
What does Array.prototype.shift() do?
What does Array.prototype.unshift() do?
Math.random() returns a number between 0 (inclusive) and 1 (exclusive).
Array.prototype.includes() is case-sensitive for strings.
String methods like toUpperCase() modify the original string.
The map() method modifies the original array.
Function declarations are hoisted with their full definition.
The querySelector() method returns all matching elements.
What is the DOM?
async/await makes asynchronous code look more like synchronous code.
Object.freeze() makes an object completely immutable including nested objects.
The const keyword prevents any changes to the variable's value.
localStorage data persists even after the browser is closed.
Arrow functions in JavaScript have their own 'this' binding.