Single Choice Easy

QWhen is JavaScript considered obtrusive?

ID: #5032 Scripted Media 252 views
Question Info
#5032Q ID
EasyDifficulty
Scripted MediaTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A JavaScript code is medium sized
  • B JavaScript code is small
  • C JavaScript code is so large
  • D JavaScript code is Very small
Correct Answer

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.

Share This Question

Challenge a friend or share with your study group.