Slide 32
Slide 32 text
# Object
pirates =
captain:
name: "Jack Sparrow"
clothing: "dirty"
babe:
name: "Elizabeth Swann"
clothing: "dress"
# Drink alcohol
drink booze for booze ↵
in ['beer', 'wine']
(function() {
var booze, pirates, _i, _len, _ref;
pirates = {
captain: {
name: "Jack Sparrow",
clothing: "dirty"
},
babe: {
name: "Elizabeth Swann",
clothing: "dress"
}
};
_ref = ['beer', 'wine'];
for (_i = 0, _len = _ref.length; _i < _len; _i++)
booze = _ref[_i];
drink(booze);
}
}).call(this);