public/subjects/jaden-case/README.md

18 lines
387 B
Markdown
Raw Permalink Normal View History

2021-05-05 22:26:56 +00:00
## 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**:
```js
let result = toJadenCase('there is no dress')
console.log(result) // > 'There Is No Dress'
```