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. None of the mentioned
Answer: Option B
Solution(By Examveda Team)
All JavaScript libraries consists of two parts:1. The external JavaScript itself, which is simply a text file with the containing JavaScript code, saved as a .js file.
2. A “script” tag referencing the external JavaScript file and defined on the page(s) that uses the library.
Related Questions on Caching and Debugging
What does the interpreter do when you reference variables in other scopes?
A. Traverses the queue
B. Traverses the stack
C. Finds the bugs
D. None of the mentioned
What will happen if you reference document.location from within an object?
A. Traverses the queue
B. Finds the bugs
C. Traverses the stack
D. None of the mentioned
Why do we need to create locally scoped variables to hold value?
A. To optimize the testing process
B. To increase the speed
C. To minimize memory usage
D. To cache the reference document.location
Join The Discussion