A palindrome is a word or phrase that can be read the same way forwards and backwards, ignoring punctuation, case, and spacing.
Note: You'll need to remove all non-alphanumeric characters (punctuation, spaces and symbols) and turn everything into the same case (lower or upper case) in order to check for palindromes.
Objective: Build an app that is functionally similar to https://palindrome-checker.freecodecamp.rocks.
- You should have an
inputelement with anidof"text-input". - You should have a
buttonelement with anidof"check-btn". - You should have a
div,spanorpelement with anidof"result". - When you click on the
#check-btnelement without entering a value into the#text-inputelement, an alert should appear with the textPlease input a value. - When the
#text-inputelement only contains the letterAand the#check-btnelement is clicked, the#resultelement should contain the textA is a palindrome. - When the
#text-inputelement contains the texteyeand the#check-btnelement is clicked, the#resultelement should contain the texteye is a palindrome. - When the
#text-inputelement contains the text_eyeand the#check-btnelement is clicked, the#resultelement should contain the text_eye is a palindrome. - When the
#text-inputelement contains the textrace carand the#check-btnelement is clicked, the#resultelement should contain the textrace car is a palindrome. - When the
#text-inputelement contains the textnot a palindromeand the#check-btnelement is clicked, the#resultelement should contain the textnot a palindrome is not a palindrome. - When the
#text-inputelement contains the textA man, a plan, a canal. Panamaand the#check-btnelement is clicked, the#resultelement should contain the textA man, a plan, a canal. Panama is a palindrome. - When the
#text-inputelement contains the textnever odd or evenand the#check-btnelement is clicked, the#resultelement should contain the textnever odd or even is a palindrome. - When the
#text-inputelement contains the textnopeand the#check-btnelement is clicked, the#resultelement should contain the textnope is not a palindrome. - When the
#text-inputelement contains the textalmostomlaand the#check-btnelement is clicked, the#resultelement should contain the textalmostomla is not a palindrome. - When the
#text-inputelement contains the textMy age is 0, 0 si ega ym.and the#check-btnelement is clicked, the#resultelement should contain the textMy age is 0, 0 si ega ym. is a palindrome. - When the
#text-inputelement contains the text1 eye for of 1 eye.and the#check-btnelement is clicked, the#resultelement should contain the text 1 eye for of1 eye. is not a palindrome. - When the
#text-inputelement contains the text0_0 (: /-\ :) 0-0and the#check-btnelement is clicked, the#resultelement should contain the text0_0 (: /-\ :) 0-0 is a palindrome. - When the
#text-inputelement contains the textfive|\_/|fourand the#check-btnelement is clicked, the#resultelement should contain the textfive|\_/|four is not a palindrome.
Fulfill the user stories and pass all the tests below to complete this project. Give it your own personal style. Happy Coding!