JS Assessment for basic JavaScript 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/exercise6.js file(inside window.exercise6 object).
Returns true when str
is a palindrome when it isn't returns false.
Returns string with letters from text
(without space). When text
is not string returns false.
Returns letters from str
in alphabetical order. Capitalization doesn't matter.
Converts the first letter of each word of the string in upper case.
Finds the longest word within the str
. Returns the array.
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!