Bugfix: Fix navigation footer in day12 document

pull/253/head
Ethan Chin 4 years ago
parent 97f84bf65f
commit 1152a9786f

@ -501,16 +501,16 @@ distance = 12
1. Writ a function which cleans text. Clean the following text. After cleaning, count three most frequent words in the string. 1. Writ a function which cleans text. Clean the following text. After cleaning, count three most frequent words in the string.
```js ```js
sentence = `%I $am@% a %tea@cher%, &and& I lo%#ve %tea@ching%;. There $is nothing; &as& mo@re rewarding as educa@ting &and& @emp%o@wering peo@ple. ;I found tea@ching m%o@re interesting tha@n any other %jo@bs. %Do@es thi%s mo@tivate yo@u to be a tea@cher!?` sentence = `%I $am@% a %tea@cher%, &and& I lo%#ve %tea@ching%;. There $is nothing; &as& mo@re rewarding as educa@ting &and& @emp%o@wering peo@ple. ;I found tea@ching m%o@re interesting tha@n any other %jo@bs. %Do@es thi%s mo@tivate yo@u to be a tea@cher!?`
console.log(cleanText(sentence)) console.log(cleanText(sentence))
``` ```
```sh ```sh
I am a teacher and I love teaching There is nothing as more rewarding as educating and empowering people I found teaching more interesting than any other jobs Does this motivate you to be a teacher I am a teacher and I love teaching There is nothing as more rewarding as educating and empowering people I found teaching more interesting than any other jobs Does this motivate you to be a teacher
``` ```
1. Write a function which find the most frequent words. After cleaning, count three most frequent words in the string. 2. Write a function which find the most frequent words. After cleaning, count three most frequent words in the string.
```js ```js
console.log(mostFrequentWords(cleanedText)) console.log(mostFrequentWords(cleanedText))

Loading…
Cancel
Save