From 6b5f8fdca27a7eb64f6c9dbd008bd59f207dbd21 Mon Sep 17 00:00:00 2001 From: Ian Zhang Date: Mon, 16 Jan 2017 19:05:55 -0800 Subject: [PATCH] Update js.html function expression Original solution will cause Syntax error --- js2.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js2.html b/js2.html index 4c2a2b1..e695ac2 100644 --- a/js2.html +++ b/js2.html @@ -729,7 +729,7 @@

21. Currying

To use it: Just pass the argument to the function.curry method and a function will be returned. Use returned function for further currying


-function converter = function(factor, symbol, input){
+var converter = function(factor, symbol, input){
   return input * factor + symbol;
 }