Skip to content

Instantly share code, notes, and snippets.

@bradjohansen
Created May 7, 2010 02:28
Show Gist options
  • Save bradjohansen/392958 to your computer and use it in GitHub Desktop.
Save bradjohansen/392958 to your computer and use it in GitHub Desktop.
A Palindrome Tester in HTML/JS
<!DOCTYPE html>
<html>
<head>
<script src="../palindrome.js"></script>
</head>
<body>
<form id="palindrome_tester">
</form>
</body>
</html>
// A Palindrome Tester In Javascript
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