r/javascript • • Jan 31 '17

Front-End Developer Handbook 2017

https://www.gitbook.com/book/frontendmasters/front-end-handbook-2017/details
438 Upvotes

47 comments sorted by

View all comments

Show parent comments

8

u/Sideburnt Jan 31 '17

Thanks, I'm drifting between being cool as a cucumber and freaking out. I appreciate the voice of reason

7

u/commitpushdrink Jan 31 '17 edited Jan 31 '17
function isPalindrome (maybePalindrome) {
  return maybePalindrome.split('').reverse().join('') === maybePalindrome;
}

Good luck!

Edit: comments on spelling addressed, thanks for the review

7

u/EnchantedSalvia Jan 31 '17

I think you drankcommitpushed because you misspelt palindrome.

6

u/commitpushdrink Jan 31 '17

That's what code review is for, right?