Created
August 14, 2014 11:35
-
-
Save Imater/411eaa0a0083e530feeb to your computer and use it in GitHub Desktop.
// source http://jsbin.com/vugub/1
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="http://jashkenas.github.io/underscore/underscore-min.js"></script> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<script id="jsbin-javascript"> | |
var add, add100; | |
add = function(a, b) { | |
return a + b; | |
}; | |
add100 = _.partial(add, 100); | |
console.info('Magic number is ' + add100(-58)); | |
</script> | |
<script id="jsbin-source-javascript" type="text/javascript">add = (a, b) -> a+b | |
add100 = _.partial(add, 100) | |
console.info 'Magic number is ' + add100(-58) | |
</script></body> | |
</html> |
This file contains 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
var add, add100; | |
add = function(a, b) { | |
return a + b; | |
}; | |
add100 = _.partial(add, 100); | |
console.info('Magic number is ' + add100(-58)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment