This program uses a while loop and 'if..else' statement that prompts the user to enter a word. It then reverses the word, checks if the word reversed is the same as the original word and outputs the result to the console and as an alert.
- Clone the repo and open with your preferred IDE (e.g. VSCode).
- In the IDE, open the palindrome.html file and click the 'run' button, or click 'Go Live' if using VSCode. This should open your browser automatically to your localhost port with '/palindrome.html' as the URL endpoint.
- Once the html file is loaded in your browser, a popup window will appear asking you to enter a word.
- Once entered, another popup will return whether or not the inputted word is a palindrome.
I created this project myself as part of my Hyperiondev course: Immersive Full Stack Web and Software Engineer (Level 1, Task 7), using the following websites for reference.