Created
May 7, 2010 02:28
-
-
Save bradjohansen/392958 to your computer and use it in GitHub Desktop.
A Palindrome Tester in HTML/JS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="../palindrome.js"></script> | |
</head> | |
<body> | |
<form id="palindrome_tester"> | |
</form> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// A Palindrome Tester In Javascript |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HTML: | |
TODO: Finish form with input, label, and submit button | |
Javascript | |
TODO: Write a function that reverses a string | |
TODO: Write a function that takes a string, reverses it using a reverse function and tests to see if it matches original | |
TODO: Write a Regex that matches punctuation and whitespace and replaces with Empty Strings | |
TODO: Write a function that gets the input submitted to the form |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment