Curry Function Call vs Normal Function Call

Edit on GitHub

Setup

Tests

  • Curry Function Call

    function curryLog(firstName) {
      return function(lastName) {
        return function(gender) {
          console.log("Hello " + firstName + " " + lastName + " " + gender);
        }
      }
    }
    
    curryLog("InfluenZ")("FeelingCurrentlyLikeSuperMan")("Male");
  • Normal Function Call

    function normalLog(firstName, lastName, gender) {
     
          console.log("Hello " + firstName + " " + lastName + " " + gender);
    }
      
    
    
    normalLog("InfluenZ", "FeelingCurrentlyLikeS", "Male");