Computer Science, asked by ilavarasi1607, 1 year ago

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 Vaishnavi18
2
the closure compiler efficient Reduces the size of the JavaScript files
Answered by Anonymous
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