Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Dadadahhhhh opened this issue Apr 19, 2024 · 0 comments
Open

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

Dadadahhhhh opened this issue Apr 19, 2024 · 0 comments

Comments

@Dadadahhhhh
Copy link

Notes

Please delete this section after reading it

If you have a problem with an error message:

  • node version: <run "node -v" in you terminal and replace this>
  • npm version: <run "npm -v" in you terminal and replace this>
  • os: windows 7/windows 10/mac/linux

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;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant