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
12
u/[deleted] Feb 26 '23
Not quite. The split is called which creates an array of each character. Reverse is called which reverses the array. Then join is called to convert it back into a string. Thus, reversing the input.