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

31st Jul 2022, 11:33 AM
Ibrahim Habibu
Ibrahim Habibu - avatar
2 odpowiedzi
+ 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
31st Jul 2022, 11:48 AM
A͢J
A͢J - avatar
+ 1
Thank you buddy 🥰
31st Jul 2022, 12:10 PM
Ibrahim Habibu
Ibrahim Habibu - avatar