# JavaScript new Operator

> Learn how the JavaScript new operator creates an object from a class or constructor function, including how arguments are passed to the constructor.

Author: [Flavio Copes](https://flaviocopes.com/about/) | Published: 2019-05-05 | Topics: [JavaScript](https://flaviocopes.com/tags/js/) | Canonical: https://flaviocopes.com/javascript-new-operator/

The [JavaScript](https://flaviocopes.com/javascript/) `new` operator is used to create a new object.

You follow `new` with the object class to create a new object of that type:

```js
const date = new Date()
```

If the object constructor accepts parameters, we pass them:

```js
const date = new Date('2019-04-22')
```

Given an Object constructor like this:

```js
function Car(brand, model) {
  this.brand = brand
  this.model = model
}
```

We initialize a new "Car" object using:

```js
const myCar = new Car('Ford', 'Fiesta')
myCar.brand //'Ford'
myCar.model //'Fiesta'
```
