What happens if a file of JavaScript code is used by more than one page?
A. It must appear on every page.
B. Re-execution is required.
C. Retrieves data from the cache of the browser
D. The number of downloads
Answer:C
What happens if a file of JavaScript code is used by more than one page?
A. It must appear on every page. B. Re-execution is required. C. Retrieves data from the cache of the browser D. The number of downloads
Explanation: If a file containing JavaScript code is shared by multiple pages, the first page that uses it only needs to download it once; subsequent pages can obtain it from the browser cache. This simplifies and accelerates the loading process.