Skip to content

stychu/javascript-tasks

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Basic JavaScript Part VI

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

isPalindrome(str)

Returns true when str is a palindrome when it isn't returns false.

onlyLetter(text)

Returns string with letters from text (without space). When text is not string returns false.

alphabetOrder(str)

Returns letters from str in alphabetical order. Capitalization doesn't matter.

upperCase(str)

Converts the first letter of each word of the string in upper case.

findTheLongestWord(str)

Finds the longest word within the str. Returns the array.

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