From 09a5415d03049bcd769724c8a13edc1ee2c772ce Mon Sep 17 00:00:00 2001 From: Shiva Sai <112751524+Shiva-Sai-ssb@users.noreply.github.com> Date: Tue, 7 Jan 2025 15:33:55 +0530 Subject: [PATCH] fix(curriculum): allow flexibility in result variable declaration (#57951) --- .../lab-leap-year-calculator/66c06fad3475cd92421b9ac2.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/curriculum/challenges/english/25-front-end-development/lab-leap-year-calculator/66c06fad3475cd92421b9ac2.md b/curriculum/challenges/english/25-front-end-development/lab-leap-year-calculator/66c06fad3475cd92421b9ac2.md index 511ca04f1d4..b14acff58a3 100644 --- a/curriculum/challenges/english/25-front-end-development/lab-leap-year-calculator/66c06fad3475cd92421b9ac2.md +++ b/curriculum/challenges/english/25-front-end-development/lab-leap-year-calculator/66c06fad3475cd92421b9ac2.md @@ -80,7 +80,7 @@ assert.match(__helpers.removeJSComments(code), /isLeapYear\(\s*year\s*\)/); You should store the result of calling the `isLeapYear` function in a variable named `result`. ```js -assert.match(__helpers.removeJSComments(code), /const\s+result\s*=\s*isLeapYear\(\s*year\s*\)/); +assert.match(__helpers.removeJSComments(code), /(?:var|let|const)\s+result\s*=\s*isLeapYear\(\s*year\s*\)/); ``` You should output the `result` to the console using `console.log()`.