question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Compiler Not Responding to Code Change. Same output no matter the code

See original GitHub issue

Challenge 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

fcc1 fcc2

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
BerkeleyTruecommented, Jul 28, 2016

@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

0reactions
QuincyLarsoncommented, Jan 4, 2017

@explorervd @KindaIntellectual are either of you still experiencing this issue? What about when you’re using beta.freecodecamp.com?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found