Search⌘ K
AI Features

Challenge: Collections

Explore JavaScript collections by completing tasks that involve reversing words using array methods and creating arrays from user input. Learn to manipulate strings and arrays for dynamic programming solutions.

We'll cover the following...

Task 1

Use a prompt box to ask the user to enter a word. Then use a combination of the split(), reverse(), and join() methods to write the word backward. For example, “hello” would become “olleh”.

Sample input 1: ...