diff --git a/challenges/basic-javascript.json b/challenges/basic-javascript.json index 1096e02868..db05feede9 100644 --- a/challenges/basic-javascript.json +++ b/challenges/basic-javascript.json @@ -956,7 +956,7 @@ "difficulty":"9.983", "description":[ "We can use if statements in JavaScript to only execute code if a certain condition is met.", - "if statements require some sort of boolean condition evaluate.", + "if statements require some sort of boolean condition to evaluate.", "Example:", " if (1 == 2) {", "  return(true);", @@ -965,7 +965,7 @@ "  return(false);", "}", "Let's use if and else statements to make a coin-flip game.", - "Create an if-else statement to return heads if the flip var is zero and to return tails if it's not." + "Create an if-else statement to return heads if the flip var is zero, or else return tails if it's not." ], "tests":[ "assert((function(){if(myFunction() === \"heads\" || myFunction() === \"tails\"){return(true);}else{return(false);}})(), 'myFunction should either return heads or tails');", @@ -975,7 +975,7 @@ "challengeSeed":[ "function myFunction(){", " var flip = Math.floor(Math.random() * (1 - 0 + 1)) + 0;", - " // Create and if else statement here to return \"heads\" if flip is 0. Otherwise return \"tails\".", + " // Create an if-else statement here to return \"heads\" if flip is 0. Otherwise return \"tails\".", "", " // Only change code below this line.", "",