# creating objects

[JS](../..) ⟩ [value](..) ⟩ [object]() ⟩ create

{% hint style="success" %}
objects can be created with&#x20;

* :star\_of\_david: [obj](create/obj "mention")
* :heavy\_plus\_sign: [new](create/new "mention") operator&#x20;
* :m: [object.create](create/object.create "mention")

```javascript
// ⭐️ creating objects with different prototypes
{name: value}         // object's prototype === Object.prototype
new F()               // object's prototype === F.prototype
Object.create(proto)  // object's prototype === proto
```
{% endhint %}

{% tabs %}
{% tab title="🔴 主題" %}
* [obj](create/obj "mention") / [arr](../builtin/arr/create/arr "mention")
* [pure-object](create/object.create/pure-object "mention")
* [closure-as-object](../func/closure/examples/closure-as-object "mention") - closure can be used as an object.
{% endtab %}

{% tab title="📗 參考" %}
* [ ] [javascript-the-definitive-guide](../../../master/ref/javascript-the-definitive-guide "mention") ⟩ 6.2 Creating Objects
{% endtab %}

{% tab title="📘 手冊" %}
* [Object.create()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/create)
{% endtab %}
{% endtabs %}
