InterviewSolution
Saved Bookmarks
| 1. |
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” tagThe question was asked in an online interview.This is a very interesting question from External JavaScript and PHP topic in division Caching, Debugging and Animation of JavaScript |
|
Answer» RIGHT answer is (b) External JavaScript and the“script” tag 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 |
|