How do you reverse a string in-place in JavaScript?

How do you reverse a string in-place in JavaScript when it is passed to a function with a return statement, without using built-in functions (.reverse(), .charAt() etc.)?

58 s
58

Leave a Comment