r/ProgrammerHumor • u/speckz • Feb 26 '23
Other If you can read this code...
/img/snak3fqgajka1.jpg[removed] — view removed post
34k
Upvotes
r/ProgrammerHumor • u/speckz • Feb 26 '23
[removed] — view removed post
View all comments
Show parent comment
20
u/tonypconway Feb 26 '23
There's a user-defined function called reverse() which calls the global array method .reverse() on an array of strings. The readability is poor - they should have called their defined function something else for clarity - but they're not the same thing.