JS Assessment for JavaScript regex knowledge. The exercise consist of a few simple tasks. You are supposed to implement functions, having provided only the function name and purpose.
Your solutions should be placed inside app/regex`.js file(inside window.regexAnswers object).
Check if string contain number. Returns true if str contains a number, false otherwise.
Detects a repeating letter in a string.
Determines whether a string ends with a vowel.
Captures the first series of three numbers.
Determines whether a string matches a pattern.
Detects correctly-formatted monetary amounts in USD.
JavaScript basic functions:
http://www.w3schools.com/jsref/
Javascript EcmaScript5 tutorials and more:
https://developer.mozilla.org/en-US/docs/Web/JavaScript
npm install
To run verify jshint:
grunt jshint:default
To start developing unit tests
grunt test:dev
To run tests and static analysis
npm test
Good luck!