Javascript对象声明中的语法错误

Edd*_*man -5 javascript jquery

我已经声明了这样一个对象

var me = {'alex','moore','baby','you'};
Run Code Online (Sandbox Code Playgroud)

没有属性名称.我只想要将元素设置为字符串.但我在chrome dev-tools和firebug中都出错了.我用谷歌搜索,但找不到任何好的答案.

我究竟做错了什么?

谢谢.

编辑

谢谢你的回答.我要问的原因是我正在读一本书"Javascript:The Definitive Guide".在PDF文件的第115页,它声明Javascript Objects ::

"They can also be used 
   (by ignoring the value part of the string-to-value mapping)
to represent sets of strings."
Run Code Online (Sandbox Code Playgroud)

所以我试图测试它,但得到错误.这本书似乎是错误的,它们可以用来表示字符串集.

Que*_*tin 7

如果需要有序的值列表,则使用数组([]),而不是普通对象({}).

var me = ['alex','moore','baby','you'];
Run Code Online (Sandbox Code Playgroud)

对象必须具有命名属性.

var me = {
    foo: 'alex',
    bar: 'moore',
    baz: 'baby',
    etc: 'you'
 };
Run Code Online (Sandbox Code Playgroud)