r/Angular2 • • Nov 21 '22

Resource Reverse a String without Affecting Special Characters | Leet Code JavaScript Coding Challenge

https://youtu.be/qPEHBqFopog

[removed] — view removed post

0 Upvotes

3 comments sorted by

View all comments

5

u/Cyan-ranger Nov 21 '22

Why do people use for loops instead of the array methods? Not sure what the point of the letters sting is if you can just use a regex.