Skip to content

Commit 09a5415

Browse files
fix(curriculum): allow flexibility in result variable declaration (freeCodeCamp#57951)
1 parent 7b82835 commit 09a5415

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

curriculum/challenges/english/25-front-end-development/lab-leap-year-calculator/66c06fad3475cd92421b9ac2.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ assert.match(__helpers.removeJSComments(code), /isLeapYear\(\s*year\s*\)/);
8080
You should store the result of calling the `isLeapYear` function in a variable named `result`.
8181

8282
```js
83-
assert.match(__helpers.removeJSComments(code), /const\s+result\s*=\s*isLeapYear\(\s*year\s*\)/);
83+
assert.match(__helpers.removeJSComments(code), /(?:var|let|const)\s+result\s*=\s*isLeapYear\(\s*year\s*\)/);
8484
```
8585

8686
You should output the `result` to the console using `console.log()`.

0 commit comments

Comments
 (0)