Missleading comments in JS exercise Declare a Read-Only Variable with the const Keyword
See original GitHub issueAffected page
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.
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
Error in Declare a Read-Only Variable with the const Keyword ...
Issue posted here: Missleading comments in JS exercise Declare a Read-Only Variable with the const Keyword · Issue #44049 ...
Read more >ES6 - Declare a Read Only Variable with the const Keyword
In this JavaScript ES6 tutorial we declare a read only variable with the const keyword. This is one part of a multi-part series...
Read more >Declare a Read-Only Variable with the const Keyword - FCC
Free Code Camp Material - To help you learn and walk through step-by-step. JavaScript Algorithms and Data Structures SectionBasic Javascript ...
Read more >Why can't we define a const field in TypeScript class, and why ...
Question1: why the class member does not have the const keyword in typescript? ... static readonly CONSTANT = 'constant'; and assign it in....
Read more >Grammar and types - JavaScript - MDN Web Docs - Mozilla
This syntax can be used to declare both local and global variables, depending on the execution context. With the keyword const or let...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
What about having the “change this line” comments? We would need three, but eh 🤷
If we have other agreements we can open this for contribution