for (var prop in {"a": 1, "b": 2, "c": 3}) { commands[prop].exec(); } /**************************************************/ for(var prop in {"a":1,"b":2,"c":3})commands[prop].exec(); /**************************************************/ for ( var prop in {"a": 1, "b": 2, "c": 3} ) { commands[prop].exec( ); }