Skip to content

Latest commit

 

History

History
12 lines (10 loc) · 446 Bytes

README.md

File metadata and controls

12 lines (10 loc) · 446 Bytes

Total Reverse

Build a function that takes in an array and reverses it

  • Write a function that takes one parameter
    • Parameter 1 - An array of anything
  • The function should output an array that is in reverse order from the input array
  • Example:
    • var myArray = ['hello', 45, 'Bob', 'what', '23'];
    • arrayReverse(myArray);
    • Output - ['23', 'what', 'Bob', 45, 'hello']
  • Avoid using pre-built functions that do something similar