Is there a way to provide named parameters in a function call in JavaScript?

I find the named parameters feature in C# quite useful in some cases. calculateBMI(70, height: 175); What can I use if I want this in JavaScript? What I don’t want is this: myFunction({ param1: 70, param2: 175 }); function myFunction(params){ // Check if params is an object // Check if the parameters I need are … Read more