From 40b02093d40f5777276e56bfe98eff39672e5f00 Mon Sep 17 00:00:00 2001 From: Matt Leonard Date: Thu, 12 Nov 2015 14:27:45 -0800 Subject: [PATCH] Update object-oriented-and-functional-programming.json Fixes two small typos: "To use a constructor function we call it with the new keyword in front if it like:" -> "To use a constructor function we call it with the new keyword in front of it like:" "javascript" -> "Javascript" --- challenges/object-oriented-and-functional-programming.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/challenges/object-oriented-and-functional-programming.json b/challenges/object-oriented-and-functional-programming.json index 20dc89a4a9..a45405019b 100644 --- a/challenges/object-oriented-and-functional-programming.json +++ b/challenges/object-oriented-and-functional-programming.json @@ -105,7 +105,7 @@ "title":"Make Instances of Objects with a Constructor Function", "description":[ "Now let's put that great constructor function we made in the last lesson to use!", - "To use a constructor function we call it with the new keyword in front if it like:", + "To use a constructor function we call it with the new keyword in front of it like:", "var myCar = new Car();", "myCar is now an instance of the Car constructor that looks like the object it described:", "{", @@ -113,7 +113,7 @@ "  engines: 1,", "  seats: 1", "}", - "Note that it is important to use the new keyword when calling a constructor. This is how javascript knows to create a new object and that all the references to this inside the constructor should be referring to this new object.", + "Note that it is important to use the new keyword when calling a constructor. This is how Javascript knows to create a new object and that all the references to this inside the constructor should be referring to this new object.", "Now, once the myCar instance is created it can be used like any other object and can have its properties accessed and modified the same way you would usually. For example:", "myCar.turboType = \"twin\";", "Our myCar variable now has a property turboType with a value of \"twin\".",