'Understanding Uninitialized Variables' accepts code that breaks the rules
See original GitHub issueUnderstanding Uninitialized Variables
Accepts invalid code
One of the test cases is: "Do not change code below the line."
However, you can still pass the challenge if you change code below that line.
Browser Information
- Browser Name, Version: Firefox 46
- Operating System: Ubuntu 14.04 LTS
- Mobile, Desktop, or Tablet: Desktop
Your Code
// Initialize these three variables
var a;
var b;
var c;
// Do not change code below this line
a = a + 1;
b = b + 5;
c = c + " String!";
a = 6;
b = 15;
c = "I am a String!";
// This passes.
Screenshot
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
'Understanding Uninitialized Variables' accepts code ... - GitHub
Understanding Uninitialized Variables Link here Accepts invalid code One of the test cases is: "Do not change code below the line.
Read more >Understanding Uninitialized Variables - Free Code Camp
In this basic JavaScript tutorial we learn about uninitialized variables in the language of JavaScript. This is one more part in a large ......
Read more >Understanding Uninitialized Variables - Basic JS - Ep 6/111
If you'd like to join me in completing this certification, join my discord server (https://madisonkanna.com/codebookclub), and once you're ...
Read more >EXP33-C. Do not read uninitialized memory
Uninitialized automatic variables or dynamically allocated memory has indeterminate values, which for objects of some types, can be a trap representation.
Read more >Scope of uninitialized variable in JavaScript - Stack Overflow
A var is not scoped inside of a loop, and curly braces do not defined a new closure. Basically, the value of j...
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
@FreeCodeCamp/issue-moderators What do you think? I don’t think these kinds of errors are worth fixing because as an optional challenge the only point is for the students learning benefit. If a student chooses to blatantly disregard the instructions they are only harming their own learning potential.
a = 5 + 1; b = 10 + 5; c = “I am a” + " String!"; this is how i did ! but could not pass “Do not change code below the line” so tried your solutions and it worked!