diff --git a/seed/challenges/01-front-end-development-certification/object-oriented-and-functional-programming.json b/seed/challenges/01-front-end-development-certification/object-oriented-and-functional-programming.json index e5575c1b51..122f3ac2f0 100644 --- a/seed/challenges/01-front-end-development-certification/object-oriented-and-functional-programming.json +++ b/seed/challenges/01-front-end-development-certification/object-oriented-and-functional-programming.json @@ -59,7 +59,7 @@ "We are also able to create objects using constructor functions.", "A constructor function is given a capitalized name to make it clear that it is a constructor.", "Here's an example of a constructor function:", - "
var Car = function() {
  this.wheels = 4;
  this.engines = 1;
  this.seats = 1;
};
", + "
var Car = function() {
  this.wheels = 4;
  this.engines = 1;
  this.seats = 5;
};
", "In a constructor the this variable refers to the new object being created by the constructor. So when we write,", "  this.wheels = 4;", "inside of the constructor we are giving the new object it creates a property called wheels with a value of 4.", @@ -70,7 +70,7 @@ "var Car = function() {", " this.wheels = 4;", " this.engines = 1;", - " this.seats = 1;", + " this.seats = 5;", "};", "", "// Only change code below this line.", @@ -83,7 +83,7 @@ "(function() {return JSON.stringify(new MotorBike());})();" ], "solutions": [ - "var Car = function() {\n this.wheels = 4;\n this.engines = 1;\n this.seats = 1;\n};\n\nvar myCar = new Car();\n\nvar MotorBike = function() {\n this.engines = 1;\n this.seats = 1;\n this.wheels = 4;\n};\n\nvar myMotorBike = new MotorBike();" + "var Car = function() {\n this.wheels = 4;\n this.engines = 1;\n this.seats = 5;\n};\n\nvar myCar = new Car();\n\nvar MotorBike = function() {\n this.engines = 1;\n this.seats = 1;\n this.wheels = 4;\n};\n\nvar myMotorBike = new MotorBike();" ], "tests": [ "assert(typeof (new MotorBike()).engines === 'number', 'message: MotorBike should have a engines attribute set to a number.');",