1.

Which is a more efficient code snippet int i = 0, j = 0; Code 1 : for(var num=10;num>=1;num--) { document.writeln(num); } Code 2 : var num=10; while(num>=1) { document.writeln(num); num++; }

A. Code 1
B. Code 2
C. Both Code 1 and Code 2
D. Cannot Compare
Answer» B. Code 2


Discussion

No Comment Found