I am not getting this problem, can anybody help me out with it? https://www.freecodecamp.org/challenges/make-instances-of-objects-with-a-constructor-function

I am not getting this problem, can anybody help me out with it? https://www.freecodecamp.org/challenges/make-instances-of-objects-with-a-constructor-function
0

#1

Tell us what’s happening:

Your code so far

var Car = function() {
  this.wheels = 4;
  this.engines = 1;
  this.seats = 5;
};

// Only change code below this line.

var myCar;

Your browser information:

Your Browser User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36.

Link to the challenge:


#2

Here is my solution.

var Car = function() {
  this.wheels = 4;
  this.engines = 1;
  this.seats = 5;
};

// Only change code below this line.

var myCar = new Car();
myCar.nickname = "Roadie";