Confusion In Test Output
See original GitHub issueDescribe the Issue
Occasionally users are confused by the test output, as changing the contents of FCC
can result in a message about capitalizing the variable name.
Affected Page
Your code
const FCC = "FreeCodeCamp"; // Change this line
let fact = "is cool!"; // Change this line
fact = "is awesome!";
console.log(FCC, fact); // Change this line
Expected behavior
Two possibilities here.
-
add a sentence stating that the user should not change the variable contents
-
split the relevant test into two parts, one for changing the capitalization of the variable name and the other for not changing the contents
Screenshots
No response
System
All
Additional context
No response
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:7 (7 by maintainers)
Top Results From Across the Web
COVID-19 rapid tests can breed confusion; here's how to ...
COVID-19 rapid tests can breed confusion; here's how to make sense of the results. By Nate Hafer, PhD, and Apurv Soni, MD, PhD'21....
Read more >Understanding Confusion Matrix | by Sarang Narkhede
What is Confusion Matrix and why you need it? Well, it is a performance measurement for machine learning classification problem where output can...
Read more >How to create a confusion matrix with the test result in your ...
So I just to explain how to create a confusion matrix if you doing an image classification model. At first, we need to...
Read more >How to Compute the Confusion Matrix of Your Tests After ...
With enough tests in your dataset, it's time to draw a confusion matrix to decide what to do with that seemingly abstract number....
Read more >COVID-19 rapid tests can breed confusion - Yahoo News
Adding to the confusion are personal accounts of people who are experiencing confusing or seemingly contradictory test results.
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
https://github.com/freeCodeCamp/freeCodeCamp/blob/main/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/declare-a-read-only-variable-with-the-const-keyword.md
Suggested test change:
FCC
should be a constant variable declared withconst
.The string assigned to
FCC
should not be changed.Suggested lesson content change:
–instructions–
Change the code so that all variables are declared using
let
orconst
. Uselet
when you want the variable to change, andconst
when you want the variable to remain constant. Also, rename variables declared withconst
to conform to common practices. Do not change the strings assigned to the variables.This looks something that can be fixed by “first time” code contributors to this repository. For details look at Jeremy’s comment above, https://github.com/freeCodeCamp/freeCodeCamp/issues/46295#issuecomment-1145129600.
Please make sure you read our guidelines for contributing, we prioritize contributors following the instructions in our guides. Join us in our chat room or the forum if you need help contributing, our moderators will guide you through this.
Sometimes we may get more than one pull requests. We typically accept the most quality contribution followed by the one that is made first.
Happy contributing.