Question Bank
1899 approved questions from the community
What is the purpose of the finally block in try-catch?
What does Promise.all() do?
What are the three states of a Promise?
What is destructuring in JavaScript?
What is the difference between shallow copy and deep copy?
What is the output of: console.log(typeof typeof 1)?
What is the difference between <script>, <script async>, and <script defer>?
Why would you create static class members?
What is the difference between mutable and immutable objects?
How do you abort a fetch request?
What is a closure in JavaScript?
What is the main difference between null and undefined?
What value does 'this' refer to in a global context (non-strict mode)?
What is the difference between event.preventDefault() and event.stopPropagation()?
The fetch() API is only available in browsers, not in Node.js.
Extending built-in JavaScript objects is generally considered a good practice.
Rest parameters and spread syntax use the same ... notation but serve opposite purposes.
How do you create a custom error?
Which are advantages of using Promises over callbacks? (Select all that apply)
What are the differences between CommonJS and ES Modules? (Select all that apply)