1.

In what way does the closure compiler help in checking the code?(a) Warnings(b) Suddenly aborts(c) Rejects malicious inputs(d) Terminates the executionThis question was posed to me at a job interview.I need to ask this question from The Closure Compiler topic in division Caching, Debugging and Animation of JavaScript

Answer» CORRECT option is (a) Warnings

Best explanation: Closure compiler PARSES your JavaScript, ANALYZES it, REMOVES dead code and rewrites and minimizes what’s left. 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