---
hide_title: false
hide_table_of_contents: false
pagination_next: null
pagination_prev: null
---
# Object()

The **`Object` constructor** turns the input into an object. Its behavior depends on the input's type.

- If the value is [`null`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Operators/null) or [`undefined`](../../globals/undefined.mdx), it creates and returns an empty object.
- Otherwise, it returns an object of a Type that corresponds to the given value.
- If the value is an object already, it returns the value.

## Syntax

```js
new Object(value)
Object(value)
```

> **Note:** `Object()` can be called with or without `new`. Both create a new object.

### Parameters

- `value`
  - : Any value.
