What is the function of a Closure Compiler?

What is the function of a Closure Compiler?
A. Originates the JavaScript
B. Compiles the JavaScript
C. Rewrites JavaScript
D. Links the JavaScript
 
Answer: c
Explanation: The Closure Compiler is a tool for making JavaScript download and runs faster. Instead of compiling from a source language to machine code, it compiles from JavaScript to better JavaScript. Closure Compiler runs through a number of “scorched-earth” optimizations—it unfurls functions, rewrites variable names, and removes functions that are never called (as far as it can tell).
 

Tìm kiếm

Back
Top