Vidyalelo
JavaScript · Q18

Caching And Debugging

Programming · JavaScript · question 18

Q18

Why is a closure template used?

A.
Statically updating in JavaScript
B.
To increase the efficiency and convenience
C.
Dynamically generating HTML in Java and JavaScript
Answer
D.
All of the mentioned

Answer: Option C

Solution

Answer: Option C
Solution:
Closure Templates are a templating system for dynamically generating HTML in both Java and JavaScript. Because the language was apparently referred to as “Soy” internal to Google, and “Soy” remains in some of the documentation and classes, sometimes Closure Templates are referred to as “Soy Templates”.