# Help initializing obj variables?

**URL:** https://community.weweb.io/t/help-initializing-obj-variables/7186
**Category:** How do I?
**Created:** [February 22, 2024, 6:21pm UTC](https://community.weweb.io/t/help-initializing-obj-variables/7186 "2024-02-22T18:21:37Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![marketplacebuilder](https://avatars.discourse-cdn.com/v4/letter/m/848f3c/32.png) [@marketplacebuilder](https://community.weweb.io/u/marketplacebuilder)
#### Post date: [February 22, 2024, 6:21pm UTC](https://community.weweb.io/t/help-initializing-obj-variables/7186/1 "2024-02-22T18:21:37Z")

</div>

Apologies if this is a dumb question. Are there videos on how to set up object variables? I am trying to update user profile in one go w/ an obj variable rather than updating each individual input field as separate variables like the below but I am having trouble figuring out the syntax. I think I am using proper JS notation here?

Thank you always for the help.

 ![image](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/e/ed56512558484f2230e95bf06c6edaccb00c14b7.png)

---

<div class="post-metadata">

### Author: ![rayanenocode](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/rayanenocode/32/13166_2.png) [@rayanenocode](https://community.weweb.io/u/rayanenocode)
#### Post date: [February 22, 2024, 6:39pm UTC](https://community.weweb.io/t/help-initializing-obj-variables/7186/2 "2024-02-22T18:39:17Z")

</div>

Hello, you forgot the “” in the key so it will be :

{  
“firstName”: “”,  
“lastName”: “”,  
“role”: 0  
}

so “firstName” instead of firstName

and also for a empty value write “” instead of “N/A”

---

<div class="post-metadata">

### Author: ![rayanenocode](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/rayanenocode/32/13166_2.png) [@rayanenocode](https://community.weweb.io/u/rayanenocode)
#### Post date: [February 22, 2024, 6:39pm UTC](https://community.weweb.io/t/help-initializing-obj-variables/7186/3 "2024-02-22T18:39:57Z")

</div>

btw there is no dumb question 😉 haha

---

<div class="post-metadata">

### Author: ![marketplacebuilder](https://avatars.discourse-cdn.com/v4/letter/m/848f3c/32.png) [@marketplacebuilder](https://community.weweb.io/u/marketplacebuilder)
#### Post date: [February 22, 2024, 6:51pm UTC](https://community.weweb.io/t/help-initializing-obj-variables/7186/5 "2024-02-22T18:51:21Z")

</div>

Deleted my prior message as I figured it out. Thank you again for all your help!
