4 ms·
Javascript has supported this for many years.
by kabes 3y ago
Javascript has supported this for many years.
- Hasnep 3y agoIt definitely hasn't, JavaScript doesn't even have named arguments.
- kabes 3y agoIf you pass your arguments as an object they are named and you can rename them. So for all practical purposes that's the same thing.
- deleted 3y ago[deleted]
- lpil 3y agoIt doesn't have labelled arguments. It can roughly simulate them using an object, but there's a slight performance cost to doing so.