From 7c19c820763134917fdb41949c5d35c957ab38a1 Mon Sep 17 00:00:00 2001 From: vbinithyanandamv Date: Wed, 16 Dec 2020 06:37:36 +0530 Subject: [PATCH] [BUG] Able to pass challenge "Basic JavaScript: Initializing Variables with the Assignment Operator" with incorrect answers #40406 (#40409) * [BUG] #40406 Fix * Update curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/initializing-variables-with-the-assignment-operator.md Requested Change. Co-authored-by: Shaun Hamilton <51722130+Sky020@users.noreply.github.com> Co-authored-by: Shaun Hamilton <51722130+Sky020@users.noreply.github.com> --- .../initializing-variables-with-the-assignment-operator.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/initializing-variables-with-the-assignment-operator.md b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/initializing-variables-with-the-assignment-operator.md index 9423a7ce5d..481934aa2e 100644 --- a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/initializing-variables-with-the-assignment-operator.md +++ b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/initializing-variables-with-the-assignment-operator.md @@ -23,7 +23,7 @@ Define a variable `a` with `var` and initialize it to a value of `9`. You should initialize `a` to a value of `9`. ```js -assert(/var\s+a\s*=\s*9\s*/.test(code)); +assert(/var\s+a\s*=\s*9(\s*;?\s*)$/.test(code)); ``` # --seed--