diff --git a/challenges/02-javascript-algorithms-and-data-structures/basic-javascript.json b/challenges/02-javascript-algorithms-and-data-structures/basic-javascript.json
index bdfaf51c2..fa16f9670 100644
--- a/challenges/02-javascript-algorithms-and-data-structures/basic-javascript.json
+++ b/challenges/02-javascript-algorithms-and-data-structures/basic-javascript.json
@@ -6787,7 +6787,7 @@
"text":
"You should not use case
, switch
, or if
statements",
"testString":
- "assert(!/case|switch|if/g.test(code), 'You should not use case
, switch
, or if
statements'); "
+ "assert(!/case|switch|if/g.test(code.replace(/([/]{2}.*)|([/][*][^/*]*[*][/])/g,'')), 'You should not use case
, switch
, or if
statements'); "
}
],
"challengeType": 1,