Vidyalelo
JavaScript · Q20

Performance Measures

Programming · JavaScript · question 20

Q20

What is the purpose of the advanced mode in the Closure compiler?

A.
Removing the variables and other parameters
B.
Renaming the variables and other parameters
Answer
C.
Slight alteration to improve the runtime performance
D.
None of the mentioned

Answer: Option B

Solution

Answer: Option B
Solution:
In Advanced mode, the Closure Compiler rewrites the JavaScript by renaming variables and functions from longer descriptive names to single letters to save file size, and it inlines functions, coalescing them into single functions wherever it determines that it can.