Question Bank
3705 approved questions from the community
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?
When would you use the universal selector `*` and the adjacent sibling combinator `+`?
How do you select all direct child `<li>` elements of a `<ul>`?
Which combinator selects direct children and which selects any descendant?
What are pseudo-elements like ::before and ::after used for?
Which selector matches elements by attribute presence or value?