DEV Community

Discussion on: Reverse a Word.

Collapse
 
rubberduck profile image
Christopher McClellan

Here’s a challenge for you. You wrote the same loop twice. Could you write a function that takes an anonymous function as an arg so you never have to write this “dual ended” loop again?