1.

Which is a more efficient code snippet?Code 1 :for(var n=10;n>=1;n--){ document.writeln(n);}Code 2 :var n=10;while(n>=1){ document.writeln(n); n++;}

A. Code 2
B. Code 1
C. Cannot Compare
D. Both Code 1 and Code 2
E. None of these
Answer» C. Cannot Compare


Discussion

No Comment Found