From f49f0ccf07940fd0eaf648248ec71b4f4249bb74 Mon Sep 17 00:00:00 2001 From: benmcmahon100 Date: Fri, 31 Jul 2015 00:22:56 +0100 Subject: [PATCH] Ready JavaScript Curriculum --- challenges/basic-javascript.json | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/challenges/basic-javascript.json b/challenges/basic-javascript.json index 8a5ee04a79..daf3b02e8e 100644 --- a/challenges/basic-javascript.json +++ b/challenges/basic-javascript.json @@ -1226,7 +1226,10 @@ "description":[ "", "Now that we have our random numbers we need to go and check for when they are all the same that means we should count it as a win", - "du" + "Different numbers will have different values so we need to return the matched number or null", + "If we get a match we should change the value of win to the number that we have three of or leave it as null", + "", + "This Is Not Done Yet" ], "tests":[ "assert(typeof(runSlots($(''))[0]) == 'number', 'SlotOne should be a random number');", @@ -1243,6 +1246,8 @@ " ", " var images = ['http://bit.ly/fcc-kittens','http://bit.ly/fcc-kittens','http://bit.ly/fcc-kittens','http://bit.ly/fcc-kittens','http://bit.ly/fcc-kittens'];", " ", + " var win = null;", + " ", " slotOne = Math.floor(Math.random() * (5 - 1 + 1)) + 1;", " slotTwo = Math.floor(Math.random() * (5 - 1 + 1)) + 1;", " slotThree = Math.floor(Math.random() * (5 - 1 + 1)) + 1;", @@ -1254,7 +1259,7 @@ " /*Don't modify below here*/", " ", " if(slotOne !== undefined && slotTwo !== undefined && slotThree !== undefined){", - " $('.logger').html(slotOne + ' ' + slotTwo + ' ' + slotThree);", + " $('.logger').html(win);", " }", " return([slotOne, slotTwo, slotThree]);", " }",