diff --git a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/es6/use-class-syntax-to-define-a-constructor-function.english.md b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/es6/use-class-syntax-to-define-a-constructor-function.english.md index ce9e045c11..3202c6ad20 100644 --- a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/es6/use-class-syntax-to-define-a-constructor-function.english.md +++ b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/es6/use-class-syntax-to-define-a-constructor-function.english.md @@ -7,9 +7,9 @@ forumTopicId: 301212 ## Description
-ES6 provides a new syntax to help create objects, using the keyword class. -This is to be noted, that the class syntax is just a syntax, and not a full-fledged class based implementation of object oriented paradigm, unlike in languages like Java, or Python, or Ruby etc. -In ES5, we usually define a constructor function, and use the new keyword to instantiate an object. +ES6 provides a new syntax to create objects, using the class keyword. +It should be noted that the class syntax is just syntax, and not a full-fledged class-based implementation of an object-oriented paradigm, unlike in languages such as Java, Python, Ruby, etc. +In ES5, we usually define a constructor function and use the new keyword to instantiate an object. ```js var SpaceShuttle = function(targetPlanet){ @@ -18,7 +18,7 @@ var SpaceShuttle = function(targetPlanet){ var zeus = new SpaceShuttle('Jupiter'); ``` -The class syntax simply replaces the constructor function creation: +The class syntax simply replaces the constructor function creation: ```js class SpaceShuttle { @@ -29,7 +29,7 @@ class SpaceShuttle { const zeus = new SpaceShuttle('Jupiter'); ``` -Notice that the class keyword declares a new function, and a constructor was added, which would be invoked when new is called - to create a new object.
+It should be noted that the class keyword declares a new function, to which a constructor is added. This constructor is invoked when new is called to create a new object.
Notes:
@@ -37,8 +37,8 @@ Notice that the class keyword declares a new function, and a constr ## Instructions
-Use class keyword and write a proper constructor to create the Vegetable class. -The Vegetable lets you create a vegetable object, with a property name, to be passed to constructor. +Use the class keyword and write a constructor to create the Vegetable class. +The Vegetable class allows you to create a vegetable object with a property name that gets passed to the constructor.
## Tests