Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
    <script src="https://rawgit.com/lodash/lodash/3.0.1/lodash.min.js"></script>
    <meta charset="utf-8">
    <title>JS Bin</title>
</head>
<body>
    <script>
        //function to add two numbers
        var addTwoNumber = function(num1, num2) {
            return num1 + num2;
        };
        //function is curreied using lodash
        var curriedAddTwoNumber1 = _.curry(addTwoNumber);
        //1st argument passed here
        var curriedAddTwoNumber2 = curriedAddTwoNumber1(5);
        //2nd argument passed here
        var result = curriedAddTwoNumber2(6);
        console.log("result: " + result);
    </script>
</body>
</html>
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
saan1984pro
0viewers