From 14713a4c48535cf9cd6bbd6e5af04ea8819c305b Mon Sep 17 00:00:00 2001 From: Aryan Jabbari Date: Mon, 17 Aug 2015 16:19:02 -0400 Subject: [PATCH 1/3] Fixes #1878 --- challenges/basic-javascript.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/challenges/basic-javascript.json b/challenges/basic-javascript.json index ed2b25e443..24318e8477 100644 --- a/challenges/basic-javascript.json +++ b/challenges/basic-javascript.json @@ -963,7 +963,7 @@ "}", "else {", "  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." ], From 237df7aa64beda277eb2ddbde57ca059ff465c61 Mon Sep 17 00:00:00 2001 From: Aryan Jabbari Date: Mon, 17 Aug 2015 16:34:45 -0400 Subject: [PATCH 2/3] Moved closing code to line 961 --- challenges/basic-javascript.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/challenges/basic-javascript.json b/challenges/basic-javascript.json index 24318e8477..3416cd2240 100644 --- a/challenges/basic-javascript.json +++ b/challenges/basic-javascript.json @@ -958,12 +958,12 @@ "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.", "Example:", - " if (1 == 2) {", + " if (1 == 2) {", "  return(true);", "}", "else {", "  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." ], From 79b2c0bd2c2de7734430759015072bcb47e976ab Mon Sep 17 00:00:00 2001 From: Aryan Jabbari Date: Mon, 17 Aug 2015 16:42:20 -0400 Subject: [PATCH 3/3] Fixed #1926 --- challenges/basic-javascript.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/challenges/basic-javascript.json b/challenges/basic-javascript.json index 3416cd2240..1096e02868 100644 --- a/challenges/basic-javascript.json +++ b/challenges/basic-javascript.json @@ -924,7 +924,7 @@ "title": "Generate Random Whole Numbers within a Range", "difficulty":"9.9829", "description":[ - "We can use a certain mathematical expression to get a random number between between two numbers.", + "We can use a certain mathematical expression to get a random number between two numbers.", "Math.floor(Math.random() * (max - min + 1)) + min", "By using this we can control the output of a random number." ],