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.

Manipulating Complex Objects

See original GitHub issue

Manipulating Complex Objects

https://www.freecodecamp.com/challenges/manipulating-complex-objects#?solution= var myMusic %3D [ { "artist"%3A "Billy Joel"%2C "title"%3A "Piano Man"%2C "release_year"%3A 1973%2C "formats"%3A [ "CS"%2C "8T"%2C "LP" ]%2C "gold"%3A true } %2F%2F Add record here ]%3B

Issue Description

In the original code, there is no comma on line 12. Without this comma, the code doesn’t run. You are not supposed to manipulate any code above line 13, so it took me quite a while to figure out why my code wasn’t working. I found another “issue” someone posted, but one of the moderators misunderstood and said that you don’t really need the comma. That’s not the point, you can’t move on unless you put it in, regardless of JS etiquette.

  • Browser Name, Version: Chrome
  • Operating System: WIN 10
  • Mobile, Desktop, or Tablet: Laptop

Your Code

var myMusic = [ { “artist”: “Billy Joel”, “title”: “Piano Man”, “release_year”: 1973, “formats”: [ “CS”, “8T”, “LP” ], “gold”: true }, (NOTE: this is line 12 and in the original, there is no comma) // Add record here { artist: “David Bowie”, title: “Blackstar”, release_year: 2016, formats: [ “CD”, “LP” ] } ];

 
 
 

Screenshot

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
clewmancommented, Jan 9, 2017

Well, considering that most of the examples are very clear about only entering code in certain places, it seems “tricky” to say, “Add record here” and then assume that we’re going to go against what we’ve been doing for the last 100 exercises and go above that to make changes. There must be a more clear way of putting it. Sorry, I’ve been teaching (college level) for the last 15 years, so I’m big on education and very clear instructions. You should never make assumptions when it comes to education.

Best, Cheryl

"A dreamer is one who can only find his way by moonlight, and his punishment is that he sees the dawn before the rest of the world." -Oscar Wilde

On Sun, Jan 8, 2017 at 11:05 PM, mrugesh mohapatra <notifications@github.com

wrote:

@clewman https://github.com/clewman once again, please double check the instructions and proceed to help chat, confirm from others if this is a bug.

If you look the instruction:

Note You will need to place a comma after every object in the array, unless it is the last object in the array.

And in the editor it says:

var myMusic = [ { “artist”: “Billy Joel”, “title”: “Piano Man”, “release_year”: 1973, “formats”: [ “CS”, “8T”, “LP” ], “gold”: true } // Add record here ];

It does not say, you can edit the code only after that comment // Add record here If you carefully read the instructions once again, hopefully, you will get this easily.

Once again, before reporting any issue, confirm that others are facing this as well, and it’s actually a bug, in this case, it’s just a bit of misunderstanding the instructions.

Happy coding!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/FreeCodeCamp/FreeCodeCamp/issues/12434#issuecomment-271221325, or mute the thread https://github.com/notifications/unsubscribe-auth/AXoX6njDlI7CdCuRfCCk6VupA-rPqqaSks5rQdxVgaJpZM4Ld1FF .

0reactions
raisedadeadcommented, Jan 9, 2017

Hey Cheryl,

Please accept my sincere apologies if I was misunderstood. We are open to adapting to changes, but just clarify, my closing the issue, this tracker is for taking bug reports objectively, we do not intend to mislead in any way.

Hence have added the note in the instructions because of similar reports in the past.

We would love to hear your feedback and improvement to the challenge given your experience 😅 in teaching!

Can you help us with any specific changes that you would like to see? You can reach out to the Contributors Chat room, or hit me up as well.

Cheers, and Happy Coding!

Read more comments on GitHub >

github_iconTop Results From Across the Web

CodeChallenge/Manipulating Complex Objects.md at master
Manipulating Complex Objects. JavaScript objects are flexible because they allow for Data Structures with arbitrary combinations of strings , numbers , booleans ...
Read more >
Manipulating Complex Objects (Basic JavaScript ... - YouTube
Certification: JavaScript Algorithms and Data StructuresCourse: Basic JavaScriptLesson: Manipulating Complex ObjectsfreeCodeCamp tutorialIn ...
Read more >
Manipulating Complex Objects, freeCodeCamp Basic Javascript
In this challenge we learn about manipulating complex objects in javascript. Javascript complex objects can be manipulated in different ways ...
Read more >
freeCodeCamp - Manipulating Complex Objects
Is there a question here? I'll assume that you're confused about what to do. If you have an array of objects:
Read more >
Manipulating Complex Objects [closed] - javascript
The problem is with this part: "formats": [ "formats": [ "CS", "8T", "LP" ] ]. Since the outer "formats" is an array, it...
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