Skip to content

stychu/javascript-tasks

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Basic JavaScript Part V

Summary

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.

Goals

Your solutions should be placed inside app/exercise5.js file (inside window.exercise5 object).

mergeObject(object1,object2)

Copies properties from one objects to another. Returns object or if parameters object1,object2 are not an objects returns false.

countLetter(object,letter)

Counts the occurrence of a letter inside every property of an object.

makeObject(array)

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.

propertyNames(object)

Creates 2D array from object where each element of array is an array like this: [properties, propertiesValue].

Before you start...

JavaScript basic functions:

http://www.w3schools.com/jsref/

Javascript EcmaScript5 tutorials and more:

https://developer.mozilla.org/en-US/docs/Web/JavaScript

Setup

To install dependencies

npm install

JShint

To run verify jshint:

grunt jshint:default

Run tests

To start developing unit tests

grunt test:dev

To run tests and static analysis

npm test

Good luck!

About

JavaScript exercises and tasks for RealSkill

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published