1.

What is the purpose of the advanced mode in the closure compiler?(a) Renames variables(b) Renames function(c) Both Renames variables and function(d) Changes structuresThis question was addressed to me during an internship interview.This is a very interesting question from The Closure Compiler topic in chapter Caching, Debugging and Animation of JavaScript

Answer»

Right option is (C) Both Renames variables and function

Easiest EXPLANATION: In Advanced MODE it 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.



Discussion

No Comment Found

Related InterviewSolutions