Last active
November 5, 2019 04:01
-
-
Save podfeet/bae6410021a2f0d91e4a03bb03e4458b to your computer and use it in GitHub Desktop.
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
<!-- This Page's Local JavaScript Code --> | |
<script type="text/javascript"> | |
// | |
// Define global variables for examples | |
// | |
// an array with the names of the days of the week | |
var days = ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday']; | |
// a regular expression for matching dollar ammounts | |
// the first capture group matches the number of dollars | |
// the second capture group matches the number of cents, if any | |
var dollarAmountRE = /[$](\d+)(?:[.](\d{2}))?/; | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment