for( var i = 10; i > 0 ; i--) code example Example: for var i = 0 for (var i = 0; i < ls.length; i++) { ... }