Which of the following code is most efficient?

Which of the following code is most efficient?
निम्नलिखित में से कौन सा कोड सबसे कार्यक्षम है?
Code 1;
for(var number=10;number>=1;number–)
{
document.writeln(number);
}
Code 2;
var number=10;
while(number>=1)
{
document.writeln(number);
number++;
}

More Web Designing and Publishing Questions

Browse all Web Designing and Publishing questions ->
Scroll to Top