nodeschool / discussions

:school::speech_balloon: need help with nodeschool? or just wanna ask a question? open an issue on this repo!
489 stars 107 forks source link

functional-javavacript task 4 does not return test data... #2952

Open Dadadahhhhh opened 7 months ago

Dadadahhhhh commented 7 months ago

Notes

Please delete this section after reading it

If you have a problem with an error message:

Error output

Your solution to Basic: Filter didn't pass. Try again!

PS F:\Programing Projects\Training\Javascript\JavascriptTraining\FunctioinalProgramming> functional-javascript verify Higher-OrderFunctionsFilterMappings.js
submission: []
solution:   [
  'Do laborum anim et dolor eiusmod.', 'Labore in id tempor in duis.', 'Mollit incididunt aliqua enim duis exercitation.', 'Voluptate magna Lorem do nisi sunt in veniam.', 'Consectetur laboris ex do fugiat.', 'Irure mollit non aliqua laborum.', 'Anim reprehenderit veniam labore do veniam.', 'Sunt cupidatat duis mollit nisi elit elit.', 'Aute adipisicing mollit amet non.'
]

# FAIL

Your solution to Basic: Filter didn't pass. Try again!

PS F:\Programing Projects\Training\Javascript\JavascriptTraining\FunctioinalProgramming>

My Code

function getShortMessages(messages) {
  const shortMessages = messages
    .filter((message) => message.length < 50)
    .map((message) => message.toUpperCase());
  return shortMessages;
}

module.exports = getShortMessages;