Finally, to handle potential edge cases, add an empty string property (you will need to use quotes) which is a function that takes a single argument and returns that argument.
const spreadsheetFunctions = {
…
random: ([x, y]) => Math.floor(Math.random() * y + x),
range: nums => range(…nums),
nodupes: nums => […new Set(nums).values(),
“”: () => (“”),
}
i cannot pass the argument. what is wrong in here? please help.
According to the instruction “takes a single argument and returns that argument”
An argument is the actual value that is passed to the function when it is called, so you need an argument for the function.
Your code wrote () which is missing an argument.
"": () => ("")
By the way… It seems the empty string property need to write at the first line of the function. Actually I think the order in object which doesn’t matter, but write it at the first line would be a good habit that improve the code readability
I also was struggling about this task as well, I hope it can help you
If you have a question about a specific challenge as it relates to your written code for that challenge and need some help, click the Ask for Help button located on the challenge (it looks like a question mark). This button only appears if you have tried to submit an answer at least three times.
The Ask for Help button will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.