What are the two parts of JavaScript libraries?

Giao Linh

New member
What are the two parts of JavaScript libraries?
A. “script” tag and “body” tag
B. External JavaScript and the “script” tag
C. “html” tag and “body” tag
D. ”html” and “style” tag
 
Answer: b
Explanation: All JavaScript libraries consists of two parts:
The external JavaScript itself, which is simply a text file with the containing JavaScript code, saved as a .js file.
A “script” tag referencing the external JavaScript file and defined on the page(s) that uses the library.
The <script> element either contains scripting statements, or it points to an external script file through the src attribute.
 

Tìm kiếm

Back
Top