What is the result of this code? const obj = { a: 1 }; Object.freeze(obj); obj.a = 2; console.log(obj.a); Web DevelopmentHard Try Now
Which behavior occurs when a browser encounters a ‘fetch’ request with ‘credentials: same-origin’ to a different domain? Web DevelopmentHard Try Now
What is the primary effect of the ‘contain’ CSS property with a value of ‘strict’ on an element? Web DevelopmentHard Try Now
Which mechanism prevents the browser from executing a script if its integrity hash does not match the fetched content? Web DevelopmentHard Try Now
What is the primary purpose of the ‘localStorage’ API in modern web browsers? Web DevelopmentMedium Try Now
Which HTTP header is used to prevent browsers from interpreting files as a different MIME type than specified? Web DevelopmentMedium Try Now
What is the result of the following JavaScript code snippet? console.log(0.1 + 0.2 === 0.3); Web DevelopmentMedium Try Now
Which CSS property is used to create a new Block Formatting Context (BFC) to prevent margin collapsing? Web DevelopmentMedium Try Now
What is the primary effect of the ‘defer’ attribute on a script tag in an HTML document? Web DevelopmentMedium Try Now
What is the primary consequence of setting ‘passive: true’ on a touch event listener? Web DevelopmentHard Try Now
Which behavior occurs when a browser encounters a ‘preload’ link tag with an incorrect ‘as’ attribute? Web DevelopmentHard Try Now
What is the result of executing the following code snippet in a modern browser environment? const p = Promise.resolve(); p.then(() => console.log(1)); queueMicrotask(() => console.log(2)); setTimeout(() => console.log(3), 0); Web DevelopmentHard Try Now
What is the specific effect of the ‘contain: strict’ CSS property on a layout container? Web DevelopmentHard Try Now
Which mechanism ensures that a browser-side microtask queue is fully processed before the next rendering update? Web DevelopmentHard Try Now
What is the primary purpose of the ‘Content-Security-Policy’ (CSP) ‘script-src’ directive? Web DevelopmentHard Try Now
What is the primary consequence of setting the ‘display’ property to ‘contents’ on a container element? Web DevelopmentHard Try Now
Which mechanism does the browser use to determine if a cross-origin request requires a preflight OPTIONS request? Web DevelopmentHard Try Now
What is the primary purpose of the ‘Vary’ HTTP header in a caching context? Web DevelopmentHard Try Now