Inconsistancy on const Naming Cases
See original GitHub issueAffected pages
Previous Lesson: https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/basic-javascript/declare-a-read-only-variable-with-the-const-keyword
Your code
/*
Change the 0 so that sum will equal 20.
*/
const SUM = 10 + 10;
Expected behavior
Correctionr: Extract: On lesson 10 from the JavaScript curriculum all caps constants are referred as the “common practice” and there after several times this “common practice” is not followed. Does it deserves to change lesson 10 text to limit this convention to a certain kind of constants or should other lessons be updated to follow this “common practice”.
<del datetime="Tue Feb 15 2022 21:23:56 GMT+0000" title="deleted Tue Feb 15 2022 21:23:56 GMT+0000 (Western European Standard Time)">As explained on previous lesson all const should be named ALLCAPS “…variables declared with const to conform to common practices, meaning constants should be in all caps.” “const sum” according to previous lesson should be rewritten to “const SUM”</del>
Screenshots
System
- Device: Desktop
- OS: Manjaro Linux 21.2.3 “Qonos”
- Browser: Firefox
- Version: 97.0 (64 bits)
Issue Analytics
- State:
- Created 2 years ago
- Comments:11 (10 by maintainers)
Top GitHub Comments
@Jagruti1610 Yes, you can make a Pull Request.
If we do anything, I would change this line:
To
And maybe remove this:
The note is spot-on, in my opinion.
Especially our declaration of: