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 Javascript passes with trivial code

See original GitHub issue

Describe your problem and how to reproduce it:

Previous comments

I know going for something like this defeats the whole purpose of learning, I just couldn’t help but try this and it passed. since I had some hard challenges so far that really engaged me by putting so many limits on. I thought maybe I should report this so that a new limit to prevent such action makes it more engaging. i’m sorry if this is not the place to post or its not important at all.

Thank you for this great site, its helping me learn quite fast, and its pretty fun and engaging.

The challenge passes with incorrect code.

Description:

Used this code which simply adds {} to the array before the sample code and passes all the tests.

var myMusic = [
{}, // this is what i tried xD
{
  "artist": "Billy Joel",
  "title": "Piano Man",
  "release_year": 1973,
  "formats": [
    "CD",
    "8T",
    "LP"
  ],
  "gold": true
}
// Add a record here
];
Previous comments

What I did was that I saw the challenge requires the 1 object of the array to have certain criteria and no other limitations putting a {}, at the start instead of typing an entire 2nd object made the challenge pass.

Add a Link to the page with the problem: https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/basic-javascript/manipulating-complex-objects

If possible, add a screenshot here (you can drag and drop, png, jpg, gif, etc. in this box):

NA

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
LaurentLabinecommented, Mar 31, 2021

No problem i’ll find something else! Cheers!

0reactions
Sembaukecommented, Mar 31, 2021

Oh, @LaurentLabine I am also taking a look already

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 >
Is it possible to add dynamically named properties to ...
Yes. var data = { 'PropertyA': 1, 'PropertyB': 2, 'PropertyC': 3 }; data["PropertyD"] = 4; // dialog box with 4 in it alert(data....
Read more >
Manipulating Elements - jQuery Learning Center
For complete documentation of jQuery manipulation methods, ... Changing things about elements is trivial, but remember that the change will ...
Read more >
If everyone hates it, why is OOP still so widespread?
If they are used to top-down programming or functional programming, which treats elements of code as precise mathematical functions, it takes ...
Read more >
Model Binding in Razor Pages
Add the following handler method code to the PageModel class in ... Fortunately model binding also works with complex objects.
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