<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>
<Below this line, add a link to the EXACT exercise that you are stuck at.>
<In what way does your code behave incorrectly? Include ALL error messages.>
My code works. I have a question about the instructions:
- Inside your method, add a line that calls .sort! on the arr array. Since it is the last line of the method, the sorted array will be returned.
- Now test your work! After your method, make a new array called numbers that contains a few numbers like the example above.
- Call your alphabetize method with your numbers array as the parameter and puts the result to the console.
Shouldn’t it be Call your alphabetize method with your numbers array as the argument instead? From what I understand:
def foo (param1, param2) <- parameter
foo (arg1, arg2) <- argument```
def alphabetize(arr, rev=false)
numbers = [2,6,8,4]
<do not remove the three backticks above>