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 VII

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/exercise7.js file(inside window.exercise7 object).

isPrimeNumber(num)

Checks if the num is a prime number. Returns true or false.

whaType (arg)

Returns the type of arg.

findMin (arr)

Returns minimum number from array. When array is empty, returns false.

findAlmostMax(arr)

Returns second greatest number from arr array. When array is empty or contains only strings, returns false.

findAlmostMin(arr)

Returns second lowest number from arr array. When array is empty or contains only strings, returns false.

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