In object literature, you can use quotation marks around property names, but you should not use them around variable names that you use in values:
{ "name": name, "email": email }
You can also write an object literal without quotes around property names:
{ name: name, email: email }
You can also mix names and values assigned with quotes and without quotes, as needed:
{ "name": name, email: email }
, name+email, :
{ "name+email": name + ', ' + email }