Skip to content

Commit

Permalink
Allude to 'this' keyword as suggested by @ParkinT
Browse files Browse the repository at this point in the history
@ParkinT suggested the ```this``` keyword be alluded to in the lesson.
Closes freeCodeCamp#3899
  • Loading branch information
AryanJ-NYC committed Oct 29, 2015
1 parent b2dbe08 commit 71435e6
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@
"<code>&thinsp;&thinsp;this.engines = 1;</code>",
"<code>&thinsp;&thinsp;this.seats = 1;</code>",
"<code>};</code>",
"Give your <code>myMotorBike</code> object a <code>wheels</code>, <code>engines</code> and <code>seats</code> attribute and set them to numbers."
"Give your <code>myMotorBike</code> object a <code>wheels</code>, <code>engines</code> and <code>seats</code> attribute and set them to numbers.",
"You may be confused by the <code>this</code> keyword here. Don't worry, we will get to that very soon."
],
"tests":[
"assert(typeof((new MotorBike()).engines) === 'number', 'message: <code>myMotorBike</code> should have a <code>engines</code> attribute set to a number.');",
Expand Down

0 comments on commit 71435e6

Please sign in to comment.