hamaXD

4

Jan 24th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // function sum3(x, y, z) {
  2. //     return x + y + z;
  3. //      }
  4. //      console.log(sum3(1, 2, 3) // 6
  5.  
  6.  
  7. let sum3 = x => y => z => x+y+z;
  8.  
  9. console.log(sum3(1)(2)(3))
Add Comment
Please, Sign In to add comment