Skip navigation

Monthly Archives: November 2011

Javascript is a expressive language. In continuation to the previous post, check the following code

var arr = ['x','y','z'];

for (var count = -1, l = arr.length, obj; obj = arr[++count], count < l;) {

// alerts x, y, z

Nothing wrong with conventional looping technique, but this is to explore JavaScript’s expressiveness!!!