I recently saw a question that asked to create a function that works for summing both of the following function calls
sumNums(1, 2); //Should return 3
sumNums(1)(2); //Should also return 3
I'm confused as to what the second line is doing. I tried to Google it and look in the Mozilla docs, but I don't know what that is called to search for it.
I would really appreciate it if someone on here could explain to me what this is. Thank you!