Vidyalelo
JavaScript · Q58

Performance Measures

Programming · JavaScript · question 58

Q58

What is the function of a Closure Compiler?

A.
Originates the JavaScript
B.
Compiles the JavaScript
C.
Rewrites JavaScript
Answer
D.
None of the mentioned

Answer: Option C

Solution

Answer: Option C
Solution:
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).