Merge pull request #6161 from alistermada/fix/waypoint-conditions-not-displayed

Fix bug on Waypoint: Iterate Through an Array with a For Loop
This commit is contained in:
Rex Schrader
2016-01-14 19:46:50 -08:00

View File

@ -3875,7 +3875,7 @@
""
],
"tail": [
"(function(t) { if(typeof t !== 'undefined') { return \"Total = \" + t; } else { return \"Total is undefined\";}})(total);"
"(function(){if(typeof total !== 'undefined') { return \"total = \" + total; } else { return \"total is undefined\";}})()"
],
"solutions": [
"var myArr = [ 2, 3, 4, 5, 6];\nvar total = 0;\n\nfor (var i = 0; i < myArr.length; i++) {\n total += myArr[i];\n}"