odin-default-js-exercises/palindromes
Marvin Gay 8430e59fe4 Merge branch 'origin/master' into 'jest' 2021-05-12 21:45:11 -04:00
..
README.md Update exercise number of each exercise 2021-05-12 19:39:31 +12:00
palindromes.js Merge branch 'origin/master' into 'jest' 2021-05-12 21:45:11 -04:00
palindromes.spec.js Revert "run jest-codemods on .spec.js files, move generator-exercises back in" 2021-05-08 11:32:41 -07:00

README.md

Exercise 09 - Palindromes

Write a function that determines whether or not a given string is a palindrome.

A palindrome is a string that is spelled the same both forwards and backwards, usually without considering punctuation or word breaks:

some palindromes:

  • A car, a man, a maraca.
  • Rats live on no evil star.
  • Lid off a daffodil.
  • Animal loots foliated detail of stool lamina.
  • A nut for a jar of tuna.
palindromes('racecar') // true
palindromes('tacos') // false