Compiler Not Responding to Code Change. Same output no matter the code
See original GitHub issueChallenge Name
https://www.freecodecamp.com/challenges/record-collection
Issue Description
The compiler does not seem to be running the provided code. I’ve tried different solutions, as well as running the code as is. Clicking run tests return the same two results. The first click produces the collection minus the 5439 object at the end, the next click brings up the entire collection with no changes.
Browser Information
- Browser Name, Version: Firefox 47.0.1
- Operating System: Windows 7 Home Premium
- Mobile, Desktop, or Tablet: Desktop
Your Code
example code
// Setup
var collection = {
"2548": {
"album": "Slippery When Wet",
"artist": "Bon Jovi",
"tracks": [
"Let It Rock",
"You Give Love a Bad Name"
]
},
"2468": {
"album": "1999",
"artist": "Prince",
"tracks": [
"1999",
"Little Red Corvette"
]
},
"1245": {
"artist": "Robert Palmer",
"tracks": [ ]
},
"5439": {
"album": "ABBA Gold"
}
};
// Keep a copy of the collection for tests
var collectionCopy = JSON.parse(JSON.stringify(collection));
// Only change code below this line
function updateRecords(id, prop, value) {
return collection[id];
}
// Alter values below to test your code
updateRecords(5439, "artist", "ABBA");
Screenshot
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
My code is not giving proper out put on offline compilers?
Whenever i try to compile my c code in vs code or code blocks it does not give proper or to be specific...
Read more >Fix program errors and improve code - Visual Studio (Windows)
This article describes some basic ways Visual Studio can help you find and fix problems in your code, including build errors, code analysis, ......
Read more >Some Practice Problems for the C++ Exam and Solutions for ...
Suppose that in response to the prompt, the interactive user types the following line and presses Enter: Please go away. What will the...
Read more >Performance Tips · The Julia Language
Performance Tips. In the following sections, we briefly go through a few techniques that can help make your Julia code run as fast...
Read more >Variables and operators | Think Java | Trinket
The third line changes the value of a , but it does not change the value of b , so they are no...
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
@erictleung I believe this is a codemirror bug that was fixed in the editor a while ago. I’m sure if you search the issue’s you can find the past solution
@explorervd @KindaIntellectual are either of you still experiencing this issue? What about when you’re using beta.freecodecamp.com?