diff --git a/challenges/basic-javascript.json b/challenges/basic-javascript.json index 27a1d2e779..aea6a75989 100644 --- a/challenges/basic-javascript.json +++ b/challenges/basic-javascript.json @@ -121,7 +121,7 @@ "For example, if we created a variable var firstName = \"Julie\", we could find out how long the string \"Julie\" is by using the firstName.length property." ], "tests": [ - "(function(){if(typeof(lastNameLength) != 'undefined' && typeof(lastNameLength) == 'number' && lastNameLength == 4){return(true);}else{return(false);}})(), 'lastNameLength should be equal to four')()" + "assert((function(){if(typeof(lastNameLength) != 'undefined' && typeof(lastNameLength) == 'number' && lastNameLength == 4){return(true);}else{return(false);}})(), 'lastNameLength should be equal to four')" ], "challengeSeed": [ "var firstName = \"Madeline\";", @@ -368,20 +368,19 @@ "description": [ "", "in JavaScript we can can work with decimal numbers", - "These decal numbers are known as floats.", - "Let's create a float now called myFloat and give it a value" + "Let's create a variable myfloat and give it a decimal value." ], "tests": [ - "assert((function(){if(typeof(myFloat) != 'undefined' && typeof(myFloat) == 'number' && editor.getValue().match(/\\./g).length >=2){return(true);}else{return(false);}})(), 'myFloat should be a decimal point number');" + "assert((function(){if(typeof(myDecimal) != 'undefined' && typeof(myDecimal) == 'number' && editor.getValue().match(/\\./g).length >=2){return(true);}else{return(false);}})(), 'myFloat should be a decimal point number');" ], "challengeSeed": [ - "//var ourFloat = 5.7", + "//var ourDecimal = 5.7", "//Create a number with a decimal point here called myFloat", "", "", "", "", - "if(typeof(myFloat) != 'undefined'){(function(z){return(z);})(myFloat);}" + "(function(){if(typeof(myDecimal) != 'undefined'){return(myDecimal);}})();" ], "challengeType": 1 }, diff --git a/challenges/jquery-ajax-and-json.json b/challenges/jquery-ajax-and-json.json index 78b7db9449..aaaca56c96 100644 --- a/challenges/jquery-ajax-and-json.json +++ b/challenges/jquery-ajax-and-json.json @@ -763,7 +763,7 @@ }, { - "id": "bad87fee1348bd9aecc08826", + "id": "bad84fee1348bd9aecc08826", "name": "Waypoint: Read Data from an Element Using jQuery", "dashedName": "Waypoint-read-data-from-an-element-using-jquery", "difficulty": 3.17,