Manipulating Complex Objects Javascript passes with trivial code
See original GitHub issueDescribe 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:
- Created 2 years ago
- Comments:8 (6 by maintainers)
Top GitHub Comments
No problem i’ll find something else! Cheers!
Oh, @LaurentLabine I am also taking a look already