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:
@ -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}"
|
||||
|
Reference in New Issue
Block a user