[JavaScript] Pass an object as function argument
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...
Feb 27, 20232 min read
![[JavaScript] Pass an object as function argument](https://cdn.hashnode.com/res/hashnode/image/upload/v1677474126012/7dcecd6e-3de0-4a0c-8c32-72184b4c701d.jpeg)