[JavaScript] Pass an object as function argument
Feb 27, 2023 · 2 min read · You are probably used to passing arguments to a function in this way: function man (name, age, city){ console.log ('name: '+name+' age: '+age+' city: '+city); } man ('Frank', 40, 'Amsterdam') But what happens then if you pass those arguments in t...
Join discussion