> For the complete documentation index, see [llms.txt](https://jonathan-zhang.gitbook.io/javascript-steppitguide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://jonathan-zhang.gitbook.io/javascript-steppitguide/ji-chu-zhi-shi/02/objectlei-xing.md).

# Object类型

Object创建实例的方式有两种

第一种

```javascript
var person = new Object();
person.name = "TYRMars";
```

第二种

```javascript
var person = {
  name:"TYRMars"
}
```
