RecursiveThinking / recursive_thinking_website

Recursive Thinking Website
5 stars 2 forks source link

JS - Can Keys Have "-"? #118

Closed sethborne closed 6 years ago

sethborne commented 6 years ago

The World Will Never Know...

until this is closed and commented.

MynockSpit commented 6 years ago

If you're taking about inside objects, yes.

var object = {
  "my-cool-key": someValue
}

Note the quotes.