---
title: "Discussion on \"[JavaScript] Pass an object as function argument\" | Hashnode"
description: "Discussion on \"[JavaScript] Pass an object as function argument\". You are probably used to passing arguments to a function in this way:\nfunction man (name, age, city){\nconsole.log ('name:  '+name+'  age:  '+age+' city: '+city);\n}\nman ('Frank', 40, 'Amsterdam')\n\nBut what happens then if you pass those arguments in t..."
url: "https://hashnode.com/posts/javascript-pass-an-object-as-function-argument/63fc39ff8161bb15e9010023"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [\[JavaScript\] Pass an object as function argument](https://snapydeveloper.hashnode.dev/javascript-pass-an-object-as-function-argument?utm_source=hashnode&utm_medium=feed)

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, 2023 · 2 min read · snapydeveloper.hashnode.dev  
Updated Mar 9, 2023  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#functions](https://hashnode.com/tag/functions)
-   [#objects](https://hashnode.com/tag/objects)
-   [#arguments](https://hashnode.com/tag/arguments)

## Written by

[snapy tips](https://hashnode.com/@snapytips)

@snapytips

  
[View profile](https://hashnode.com/@snapytips)

i am blogger and fullstack developer

I am Anindya. I am freelancer Full stack developer and blogger.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
