Let say I have a JavaScript function and I want to use it as number to calculate.
However, I could either pass in string number (then convert to integer) or integer directly. Which one is good practice, considering that I'm writing plugging for other users to use and they have no knowledge of implementation detail (of course I could read function signature to see which one to pass in).
Thanks.