Help initializing obj variables?

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.

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”

1 Like

btw there is no dumb question :wink: haha

1 Like

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

1 Like