Hi, I believe there’s a typo in the lesson Declare a Read-Only Variable with the const Keyword , as the tests can only be passed if also the console.log is changed, even though the instructions say that code should not modified. Pls have a look, thanks!
Sky020
November 2, 2021, 11:48am
2
Welcome there,
Thank you, for taking the time to mention this. This has been fixed upstream, and will be on production on the next release.
You can read more here:
opened 03:33PM - 28 Oct 21 UTC
closed 10:37AM - 29 Oct 21 UTC
type: bug
scope: curriculum
## Affected page
https://www.freecodecamp.org/learn/javascript-algorithms-and-d… ata-structures/basic-javascript/declare-a-read-only-variable-with-the-const-keyword#
## Your code
```
// Only change code below this line <== this comment is not needed
const FCC = "freeCodeCamp";
let fact = "is cool!";
// Only change code above this line <== this is not true, check require changes in line with console.log
fact = "is awesome!";
console.log(FCC, fact);
```
## Expected behavior
Remove comments from this exercise to not misslead learners.
## System
All
- Device: Desktop, Laptop
- OS: [Arch, Windows 10, Ubuntu 20.4]
- Browser: Chrome, Vivaldi
- Version: latest
## Additional context
as discussed here: https://forum.freecodecamp.org/t/error-in-declare-a-read-only-variable-with-the-const-keyword-exersise/483491/2 this is a bug.
Happy coding
system
Closed
May 3, 2022, 11:48pm
3
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.