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 73c68af66ee..8d533056838 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 @@ -12,7 +12,9 @@ In ES5, we usually define a constructor function, and use the new k
var SpaceShuttle = function(targetPlanet){
  this.targetPlanet = targetPlanet;
}
var zeus = new SpaceShuttle('Jupiter');
The class syntax simply replaces the constructor function creation:
class SpaceShuttle {
  constructor(targetPlanet){
    this.targetPlanet = targetPlanet;
  }
}
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. +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.
+Note
+UpperCamelCase should be used by convention for ES6 class names, as in SpaceShuttle used above. ## Instructions