fix(curriculum): allow flexibility in result variable declaration (#57951)

This commit is contained in:
Shiva Sai
2025-01-07 15:33:55 +05:30
committed by GitHub
parent 7b82835577
commit 09a5415d03

View File

@@ -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()`.