3 ms·
So does javascript.
by vorticalbox 6y ago
So does javascript.
- Toutouxc 6y agoI believe that JS doesn't have function overloading. Function overloading, the way I understand it, is the ability to declare multiple functions with the same name but a different signature (different tuple of arguments) and let the runtime/compiler decide upon the implementation used.
- vorticalbox 6y agoJavaScript supports this here is a snippet from out sdk https://pastebin.com/xCnY8ZzV https://pastebin.com/xCnY8ZzV
- emteycz 6y agoThat's TypeScript and it works only with type signatures, you still have only one actual implementation.