Vidyalelo
JavaScript · Q39

Server

Programming · JavaScript · question 39

Q39

What is the programming philosophy that argues that content and behaviour should as much as possible be kept separate?

A.
Unobtrusive JavaScript
Answer
B.
Obtrusive JavaScript
C.
Inherited JavaScript
D.
Modular JavaScript

Answer: Option A

Solution

Answer: Option A
Solution:
A programming philosophy known as unobtrusive JavaScript argues that content (HTML) and behavior (JavaScript code) should as much as possible be kept separate. According to this programming philosophy, JavaScript is best embedded in HTML documents using “script” elements with src attributes.