Programming Test 2: Count backwards from 100 to 1

By | 11 April, 2015

Starting your script with:

for (var i=0 …

Complete the code so that it prints out the numbers 100 to 1.

You have 10 minutes.

My solution in node.js


//test to print all numbers back from 100 to 1
//should be easy for anyone in under 10 minutes. 
for (var i=0; i<100 ; i++)
{
	console.log(100-i);
}