2 ms·
Imho, languages that break the abribtrary difference between functions and methods do this best, so there's no difference between Square(myNum) and myNum.Square
by Pxtl 9y ago
Imho, languages that break the abribtrary difference between functions and methods do this best, so there's no difference between Square(myNum) and myNum.Square(), since .Square() works nice for pipe-style usage.
- djedr 9y agoSure, but JavaScript is not one of those languages unfortunately.