/documentation/coffee/splats.coffee
http://github.com/jashkenas/coffee-script · CoffeeScript · 25 lines · 21 code · 4 blank · 0 comment · 0 complexity · 32a81415b7c5c962b86471d0a711b0d6 MD5 · raw file
- gold = silver = rest = "unknown"
- awardMedals = (first, second, others...) ->
- gold = first
- silver = second
- rest = others
- contenders = [
- "Michael Phelps"
- "Liu Xiang"
- "Yao Ming"
- "Allyson Felix"
- "Shawn Johnson"
- "Roman Sebrle"
- "Guo Jingjing"
- "Tyson Gay"
- "Asafa Powell"
- "Usain Bolt"
- ]
- awardMedals contenders...
- alert "Gold: " + gold
- alert "Silver: " + silver
- alert "The Field: " + rest