Palindrome Checker create a JavaScript program that checks if phrases entered by the user are palindromes. A palindrome is a word, number, phrase, or other sequence of characters which reads the same backward as forward, such as “SIR”, “raceBIKE”, “Never odd or even”, “20/1/20”. The program should prompt the user to type in a phrase that is at least three characters long, and then tell the user whether the phrase was a palindrome. Note, the decision should be based solely on letters and numerical digits, and so it should not consider other characters, such as spaces or exclamation marks, even though these might be entered by the user. when checking palindromes. A. Select your test data with care. Both palindromes and non-palindromes would be included in this. Provide examples that are text, numeric, and mixed; ignore any additional characters and spaces; and B. Ask the user for the word and then read their input. To verify that their input string has been read correctly, test this by displaying it.
Palindrome Checker
create a JavaScript program that checks if phrases
entered by the user are palindromes. A palindrome is a word, number, phrase, or other
sequence of characters which reads the same backward as forward, such as “SIR”,
“raceBIKE”, “Never odd or even”, “20/1/20”. The program should prompt the user to type
in a phrase that is at least three characters long, and then tell the user whether the phrase
was a palindrome. Note, the decision should be based solely on letters and numerical
digits, and so it should not consider other characters, such as spaces or exclamation
marks, even though these might be entered by the user.
when checking palindromes.
A. Select your test data with care. Both palindromes and non-palindromes would be included in this. Provide examples that are text, numeric, and mixed; ignore any additional characters and spaces; and
B. Ask the user for the word and then read their input. To verify that their input string has been read correctly, test this by displaying it. Repeat your testing using examples that were carefully curated.E. Lowercase all the letters. By showing the "before" and "after" versions of the inputted phrases, you can verify this.
F. Made the resulting phrase into a reversed form. Display both iterations of the phrase to verify this.
G. To determine whether the phrase was a palindrome, compare the original and reversed phrases. Verify the comparison's conclusion is accurate.
H. Show the resolution. Check to make sure the conclusion is presented correctly.
I. Any code added specifically for testing can be commented out once you are confident that your programme works and has been thoroughly tested.
C. Remove all whitespace and irrelevant characters, leaving only letters and numeric digits. By showing the "before" and "after" versions of the inputted phrases, you can verify this.
D. Check the remaining phrase's length; if it is less than three characters, prompt the user and exit the programme. Try it with words like
Finish the Basic Build and Additional Build completely, and then create a new version of the programme that has been modified to ask the user to load a text file with multiple phrases, each on a separate line. When the programme has finished reading each line, it should output the phrase and indicate whether or not it is a palindrome. (Note: If you choose to complete this build element, make sure you also submit the separate code for the Basic Build and Additional Build programme
![](/static/compass_v2/shared-icons/check-mark.png)
Step by step
Solved in 3 steps with 3 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![C How to Program (8th Edition)](https://www.bartleby.com/isbn_cover_images/9780133976892/9780133976892_smallCoverImage.gif)
![Database Systems: Design, Implementation, & Manag…](https://www.bartleby.com/isbn_cover_images/9781337627900/9781337627900_smallCoverImage.gif)
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)