DEV Community

Discussion on: Solving Palindrome Check with JavaScript

Collapse
 
tracygjg profile image
Tracy Gilmore • Edited

Another approach you might want to try in to use the at method with the negative index to check both ends at once using an Array.every method on a destructured section of the string. Might not be the most efficient but another approach from which to learn.