Skip to content
 
 

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JavaScript Numbers

Summary

JS Assessment for JavaScript numbers 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/numbers.js file(inside window.numbersAnswers object).

valueAtBit(num, bit):

Returns bit value of nth bit in num number.

base10(str):

Retruns number represented by binary str string.

convertToBinary(num):

Returns a string value with binary representation of num parameter.

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

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors