1.

What are the benefits of closure compiler?(a) Efficiency(b) Code checking(c) Both Efficiency and Code checking(d) ModularityThe question was asked during an interview.I want to ask this question from The Closure Compiler in chapter Caching, Debugging and Animation of JavaScript

Answer»

The correct choice is (d) Modularity

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. The closure compiler is highly beneficial in terms of:

Efficiency: The Closure Compiler reduces the size of your JavaScript files and makes them more efficient, helping your APPLICATION to load faster and REDUCING your bandwidth needs.

Code checking: The Closure Compiler PROVIDES warnings for illegal JavaScript and warnings for potentially dangerous operations, helping you to produce JavaScript that is less buggy and easier to maintain.



Discussion

No Comment Found

Related InterviewSolutions