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 b723b9ceda..dd88d71dd3 100644
--- a/challenges/02-javascript-algorithms-and-data-structures/basic-javascript.json
+++ b/challenges/02-javascript-algorithms-and-data-structures/basic-javascript.json
@@ -536,7 +536,7 @@
],
"tests": [
"assert(myVar === 88, 'message: myVar
should equal 88
');",
- "assert(/myVar\\s*\\=.*myVar\\s*\\+\\s*1/.test(code) === false, 'message: myVar = myVar + 1;
should be changed');",
+ "assert(/var\\s*myVar\\s*=\\s*87;\\s*\\/*.*\\s*myVar\\+\\+;/.test(code), 'message: myVar = myVar + 1;
should be changed');",
"assert(/[+]{2}\\s*myVar|myVar\\s*[+]{2}/.test(code), 'message: Use the ++
operator');",
"assert(/var myVar = 87;/.test(code), 'message: Do not change code above the line');"
],
@@ -585,6 +585,7 @@
],
"tests": [
"assert(myVar === 10, 'message: myVar
should equal 10
');",
+ "assert(/var\\s*myVar\\s*=\\s*11;\\s*\\/*.*\\s*myVar--;/.test(code), 'message: myVar = myVar - 1;
should be changed');",
"assert(/[-]{2}\\s*myVar|myVar\\s*[-]{2}/.test(code), 'message: Use the --
operator on myVar
');",
"assert(/var myVar = 11;/.test(code), 'message: Do not change code above the line');"
],