Lodash project .words()

I’m struggling with the Lodash project at the .words part (steps 11-14). I came up with the same solution as the woman in the video. Hers works when she runs it, but mine doesn’t. I’ve gone over the syntax multiple times and don’t see any mistakes. Can someone tell me what I’ve done wrong?

const words = string.split(’ ');
return words

Be sure to Save before you run the test.

Not really fond of using a variable with the same name as the method, even if they are independent in terms of scope. I would just return the expression without assigning it to a variable.

return string.split(' ');

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.