diff --git a/testcases/loops/count-backwards-with-a-for-loop.js b/testcases/loops/count-backwards-with-a-for-loop.js index 61e595e..f65a737 100644 --- a/testcases/loops/count-backwards-with-a-for-loop.js +++ b/testcases/loops/count-backwards-with-a-for-loop.js @@ -1,9 +1,6 @@ -// for (let i = ___; i > ___; i -= ___) { -// console.log(i); -// } -if (code.include('for (let i = 10; i > 0; i -= 2) {')) { // TODO: convert to regex +if (code.includes('for (let i = 10; i > 0; i -= 2) {')) { // TODO: convert to regex isPass = true; } else { isPass = false; - feedback = 'The code is not a for loop that counts backwards.'; + msg = 'The code is not a for loop that counts backwards.'; } \ No newline at end of file