JavaScript
Implementing named arguments in JavaScript
Since JavaScript does not support named function arguments we can replicate this feature using object destructing. A function's arguments typically can be declared like this: function printFullName(firstName = "", lastName = "") { return `${firstName} ${lastName}`; return `${firstName} ${lastName}`; } Invoking printFullName("John", "Doe"); // John