Created
March 23, 2013 00:28
-
-
Save lancelakey/5225768 to your computer and use it in GitHub Desktop.
Ruby Vs. CoffeeScript: Battle #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ruby Total: 17 | |
~ > pry | |
[4] pry(main)> def add(a,b) | |
[4] pry(main)* a+b | |
[4] pry(main)* end | |
=> nil | |
[5] pry(main)> add(1,1) | |
=> 2 | |
CoffeeScript Total: 14 | |
~ > coffee | |
------> add = (a,b) -> | |
......> a + b | |
[Function] | |
coffee> add(1,1) | |
2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
what does the 'total' refer to? :)