- Fork and clone the repo
- In your terminal -
npm install
Your goal is to solve the challenges below, the tests will tell you what to do :)
npm run hello
npm run add
npm run capitalise
- solve using
String.prototype.slice
npm run swapcase
npm run reverse1
- solve using a for loop
npm run upcase
- solve using forEach
Array.prototype.forEach
npm run downcase
- solve using map
Array.prototype.map
npm run evens
- solve using filter
Array.prototype.filter
npm run howIndex
- solve using indexOf
Array.prototype.indexOf
npm run reverse3
- solve using join and split
Array.prototype.join()
andString.prototype.split()
(not necessarily in that order)
npm run max
- solve using reduce
Array.prototype.reduce
npm run sortWords
- solve using sort
Array.prototype.sort
npm run sortedNames
- solve using sort
Array.prototype.sort