Fixed the fact it was myDecimal instead of myFloat
This commit is contained in:
@ -368,14 +368,14 @@
|
|||||||
"description": [
|
"description": [
|
||||||
"",
|
"",
|
||||||
"in JavaScript we can can work with decimal numbers",
|
"in JavaScript we can can work with decimal numbers",
|
||||||
"Let's create a variable <code>myfloat</code> and give it a decimal value."
|
"Let's create a variable <code>myDecimal</code> and give it a decimal value."
|
||||||
],
|
],
|
||||||
"tests": [
|
"tests": [
|
||||||
"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');"
|
"assert((function(){if(typeof(myDecimal) != 'undefined' && typeof(myDecimal) == 'number' && editor.getValue().match(/\\./g).length >=2){return(true);}else{return(false);}})(), 'myDecimal should be a decimal point number');"
|
||||||
],
|
],
|
||||||
"challengeSeed": [
|
"challengeSeed": [
|
||||||
"//var ourDecimal = 5.7",
|
"//var ourDecimal = 5.7",
|
||||||
"//Create a number with a decimal point here called myFloat",
|
"//Create a number with a decimal point here called myDecimal",
|
||||||
"",
|
"",
|
||||||
"",
|
"",
|
||||||
"",
|
"",
|
||||||
|
Reference in New Issue
Block a user