Question Bank
246 approved questions from the community
All browser events bubble up from the target element to the root of the document.
When comparing ES2015 classes to ES5 function constructors, what is the 'super()' call used for?
What is a higher-order function?
How would you define a closure in JavaScript?
Which of the following is a typical use case for anonymous functions in JavaScript?
What is the primary difference between `.call()` and `.apply()`?
In JavaScript, the expression `typeof null` returns 'object'.
What is the key difference between `<script async>` and `<script defer>` for external scripts?
Which browser storage mechanism is sent to the server with every HTTP request?
What determines the value of `this` in a regular function call (non-arrow, non-method)?
Event delegation involves attaching an event listener to a parent element instead of individual child elements.
In the JavaScript event loop, how are microtasks handled relative to macrotasks?
What is the primary difference between `==` and `===`?
Which statement about `var`, `let`, and `const` is correct regarding their scope?
What is hoisting in JavaScript?
What is the difference between block, inline, and inline-block elements?
Which modern techniques can center a block-level element both horizontally and vertically?
Which `box-sizing` value includes padding and border within the element's specified width?
What is margin collapsing and how can it be prevented?
What are the main parts of the CSS box model?