I am going through the Call It exercise, and I understand how to call a function, but it just gives me a red cross, saying that it is wrong. What’s wrong?
below the editor, it says: Make sure to call array_of_10 on line 5.
I know that I have to just type the name of the function, but still unable to proceed. I even cut and paste in case I have typed it wrongly, but still the same.
Any ideas? Thanks
below is the code, I type it on Line 5 as suggested.
def array_of_10 puts (1..10).to_a end array_of_10