Q: When is JavaScript considered obtrusive?
-
A
JavaScript code is medium sized
-
B
JavaScript code is small
-
C
JavaScript code is so large
-
D
JavaScript code is Very small
C
Answer:
C
Explanation:
When JavaScript code is so large that it makes it difficult to see the HTML, we refer to it as obtrusive JavaScript. Unobtrusive JavaScript, on the other hand, is a best practice approach to adding JavaScript to the front-end of a website.
Obtrusive JavaScript is a term used to describe situations where the amount of JavaScript code is so great that it obscures the HTML.
Unobtrusive JavaScript, on the other hand, refers to a method of adding JavaScript to a website in a way that is considered best practice.
If the amount of JavaScript code on a website is so large that it hides the HTML, it is referred to as obtrusive JavaScript. Unobtrusive JavaScript, on the other hand, is a recommended approach to incorporating JavaScript into the front-end of a website.
Obtrusive JavaScript is a term used to describe situations where the amount of JavaScript code on a website is so great that it obscures the HTML. Unobtrusive JavaScript, on the other hand, is a best practice approach to adding JavaScript to a website in a way that is less disruptive.
Related Topic:
Share Above MCQ