Purchase Solution

A Recursive Javascript Function to Detect Palindromes

Not what you're looking for?

Ask Custom Question

Please see the attached file.

Design and implement a Web page named pal.html that tests whether a word or phrase is a palindrome. Your page should allow the user to enter a word or phrase and then display a string indicating whether that word or phrase is a palindrome. The code that evaluates the user's input should be case insensitive and should ignore any non-letters within the string. Thus, the following words and phrases would all be considered palindromes:

Bob
Able was I ere I saw Elba.
A man; a plan; a canal; Panama!

The choice of page elements (e.g., test boxes, buttons, text areas) and their layout is up to you, but the overall design should be intuitive and user friendly.

Attachments
Purchase this Solution

Solution Summary

This solution shows how to create a recursive Javascript function to identify palindromes. See attachment.

Solution Preview

Before checking to see if the entered text is a palindrome or not we need to strip all of the non-letter characters and convert all letters to lower case. Once that is done we can do the actual palindrome ...

Purchase this Solution


Free BrainMass Quizzes
Java loops

This quiz checks your knowledge of for and while loops in Java. For and while loops are essential building blocks for all Java programs. Having a solid understanding of these constructs is critical for success in programming Java.

Word 2010: Tables

Have you never worked with Tables in Word 2010? Maybe it has been a while since you have used a Table in Word and you need to brush up on your skills. Several keywords and popular options are discussed as you go through this quiz.

Word 2010: Table of Contents

Ever wondered where a Table of Contents in a Word document comes from? Maybe you need a refresher on the topic? This quiz will remind you of the keywords and options used when working with a T.O.C. in Word 2010.

Basic Computer Terms

We use many basic terms like bit, pixel in our usual conversations about computers. Are we aware of what these mean? This little quiz is an attempt towards discovering that.

Inserting and deleting in a linked list

This quiz tests your understanding of how to insert and delete elements in a linked list. Understanding of the use of linked lists, and the related performance aspects, is an important fundamental skill of computer science data structures.