RosettaCodeData/Task/Associative-array-Iteration/CoffeeScript/associative-array-iteration...

10 lines
113 B
CoffeeScript

hash =
a: 'one'
b: 'two'
for key, value of hash
console.log key, value
for key of hash
console.log key