Object attribute names

by Niels NTG

var someObject = {
   someValue: 789.34,
   someOtherValue: false

var someObject = {
   'someValue': 789.34,
   'someOtherValue': false

A collage of mine insists in using the blue option since "that's more consistent with when there are keys with a - in them." But those shouldn't be used in the first place, so I'm not quite convinced.

Niels NTG

Sign in to comment!