0
What wrong with my code please, the second output should be the reverse of the first output
Reverse string twice https://code.sololearn.com/WIymQwKg5E4w/?ref=app
2 Answers
+ 1
Ibrahim Habibu
Why there is (arr.length - 0)?
And why ( i >= 1)
There should be: (arr.length - 1) and (i >= 0)
and what is the use of return if you are storing data in global array.
also you are storing value of index 'i' not value of the array
https://code.sololearn.com/WnPHgWZG2A2T/?ref=app
+ 1
Thank you buddy đ„°