simplified flip code in basic-javascript.json

This commit is contained in:
Akira Laine
2015-12-20 16:26:32 +11:00
parent 8331d90d20
commit 2a8b3f48bf

View File

@ -1457,7 +1457,7 @@
"assert((function(){flip = 1; var result = myFunction(); if(result === 'tails'){return true;} else {return false;}})(), 'message: <code>myFunction</code> should return <code>tails</code> when flip equals 1');"
],
"challengeSeed": [
"var flip = Math.floor(Math.random() * (1 - 0 + 1)) + 0;",
"var flip = Math.floor(Math.random() * 2);",
"",
"function myFunction() {",
"",