

MCQOPTIONS
Saved Bookmarks
1. |
Which is a more efficient code snippet ?Code 1 :for(var=10;num>=1;num--){document.writeln(num);}Code 2 :var num=10;while(num>=1){document.writeln(num);num++;} |
A. | ode 1 |
B. | ode 2 |
C. | oth Code 1 and Code 2 |
D. | annot Compare |
Answer» B. ode 2 | |