public/subjects/jaden-case
Clement Denis d3a8b56646 discovery-js: add more exercises 2021-05-05 23:27:11 +01:00
..
README.md discovery-js: add more exercises 2021-05-05 23:27:11 +01:00

README.md

Jaden Case

Instructions

Declare a toJadenCase function that takes a string sentence argument and does:

  • .split the sentence argument into words
  • then .map over it to capitalize each words
  • finally .join the capitalized words back into a sentence

Example:

let result = toJadenCase('there is no dress')
console.log(result) // > 'There Is No Dress'