DEV Community

Discussion on: How to Determine if a String is a Palindrome (in JavaScript)

Collapse
 
cyberhck profile image
Nishchal Gautam

Less complexity? About performance, you can scale out, you need to write code which is easy to maintain, read and modify, when you look at original method, you won't know what's going on without some serious effort, with second one, within 2-5 seconds you understand exactly what it's doing