In what way is the closure compiler efficient?
A.Increases the size of the JavaScript files
B.Reduces the size of the JavaScript files
C.Reduces the execution time
D.Reduces the speed
Answers
Answered by
2
the closure compiler efficient Reduces the size of the JavaScript files
Answered by
4
Hi,
B.Reduces the size of the JavaScript is your answer
Closure Compiler is used for reducing the size of JavaScipt file by
1. replacing variable names with chars like a, b, c etc
2. removes white space form code
3. removes dead code
for example
function greetMe(name) {
alert('Hello, ' + name);
}
greetMe('Ajay');
will become
function greetMe(a){alert("Hello, "+a)}greetMe("Ajay");
Similar questions
English,
7 months ago
English,
7 months ago
Biology,
7 months ago
Computer Science,
1 year ago
Computer Science,
1 year ago
Science,
1 year ago
Chemistry,
1 year ago