mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
fix(curriculum): allow flexibility in result variable declaration (#57951)
This commit is contained in:
+1
-1
@@ -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`.
|
You should store the result of calling the `isLeapYear` function in a variable named `result`.
|
||||||
|
|
||||||
```js
|
```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()`.
|
You should output the `result` to the console using `console.log()`.
|
||||||
|
|||||||
Reference in New Issue
Block a user