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/exercise5.js file (inside window.exercise5 object).
Copies properties from one objects to another. Returns object or if parameters object1
,object2
are not an objects returns false.
Counts the occurrence of a letter
inside every property of an object
.
Creates object from 2D array
where each element of array
is an array like this: [properties, propertiesValue]. Returns false when inner array has more
than 2 dimensions.
Creates 2D array from object
where each element of array is an array like this: [properties, propertiesValue].
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!