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
// write a function that takes an argument | |
// and returns that argument. | |
function identity(x) { | |
return x; | |
} | |
// write two binary functions, add and mul, | |
// that take two numbers and return their sum and product. |