Hello and welcome to the community !
You should describe what issue you are facing between the *** marks at the top of your post.
You basically want to make some changes to your object based on the arguments that get passed onto your function.
Use either an if/else statement or count to check that the conditions of the arguments that are passed are given the right action.
Don’t stress if its hard because this step is really tough. I’ve spent a while on it already and have still yet to pass so good luck!
Don’t hesitate to ask for help if your stuck!
Have a time coding!!!
The error is a syntax error and it shows that there is a missing closing ) bracket after the if statement. That’s because you have two opening (( brackets after your else if statement when only one is necessary. Using the console window to pick up errors can makes the job so much easier.
Now that the code runs you can easily see which conditions still have to be met.
I’m gonna try to solve them now and I’d love to here, how it works out for you.
Happy coding!
Also instead of using specific example you want your function to work for all input s that a user can pass as arguments.
Ex instead of saying:
you can say something like:
if (prop === "")
and then delete the prop property from the album because the argument entered as a value is an empty string.
Instead of using recordCollection as the objects name use the ‘records’ property as the name recordCollection is passed in to equel to ‘recordCollection’ and the step wants you to return records.