1.

What is scorched-earth optimizations?(a) They optimize based on certain constraints(b) They strip out everything including best practices(c) Based on certain constraints(d) Striping out additional thingsThis question was posed to me in examination.This intriguing question comes from JavaScript Minification topic in chapter Performance Measures in JavaScript of JavaScript

Answer» RIGHT option is (B) They strip out everything including best practices

The best I can explain: The Closure Compiler is a tool for making JavaScript DOWNLOAD and runs faster. 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).


Discussion

No Comment Found

Related InterviewSolutions