(phrase)
| 304 | |
| 305 | // wordFrequency('lol what lol') 👉 {'lol': 2, 'what': 1} |
| 306 | const wordFrequency = (phrase) => { |
| 307 | const words = phrase.split(' ') |
| 308 | return letterFrequency(words) |
| 309 | } |
| 310 | |
| 311 | // const userInput = prompt('Write your sentence') |
| 312 | // console.log(wordFrequency(userInput)) |
nothing calls this directly
no test coverage detected