DEV Community

loading...

Discussion on: Named arguments | JS

Collapse
frondor profile image
Federico Vázquez

They are not "named arguments" as you know then from Python, where they keep the position. It's only one object as first and only argument which you destructure to declare each prop as a variable in the scope of that function.
It's important to keep concepts clear and right, otherwise, you'll mention "named arguments" in a JS interview and Its most likely you ain't getting the job.

Collapse
susomejias profile image
Jesús Mejías Leiva Author

In several parts of the article I indicate that the technique is simply based on the destructuring of an object that is passed as an argument, anyway I appreciate your comment, thank you 🤗