Skip to content

Commit

Permalink
TypeError: code.include is not a function
Browse files Browse the repository at this point in the history
Fixes #65
  • Loading branch information
m7medVision committed Mar 10, 2024
1 parent c7a1757 commit 86da3dd
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions testcases/loops/count-backwards-with-a-for-loop.js
Original file line number Diff line number Diff line change
@@ -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.';
}

0 comments on commit 86da3dd

Please sign in to comment.