I recently had to do a code test on a job interview. Normally, I dislike being put on the spot, but this was kind of fun – I was given the problem of testing whether a string was a palindrome (the same forward and backward) with JavaScript. Here’s my solution (not very stylish, but it works!):
See the Pen Simple Palindrome Checker by ColemanTO (@ColemanTO) on CodePen.