mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2025-12-30 03:03:06 -05:00
fix(curriculum): allow flexibility in result variable declaration (#57951)
This commit is contained in:
@@ -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()`.
|
||||
|
||||
Reference in New Issue
Block a user