Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Write a sum method which will work properly when invoked using either syntax below.
- console.log(sum(2,3)); // Outputs 5
- console.log(sum(2)(3)); // Outputs 5
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement