1. Write a pattern which identify if a string is a valid JavaScript variable
1. Write a pattern which identify if a string is a valid JavaScript variable
```sh
```sh
@ -484,7 +483,8 @@ distance = 12
```
```
```sh
```sh
[{word:'love', count:6},
[
{word:'love', count:6},
{word:'you', count:5},
{word:'you', count:5},
{word:'can', count:3},
{word:'can', count:3},
{word:'what', count:2},
{word:'what', count:2},
@ -499,7 +499,7 @@ distance = 12
### Exercises: Level 3
### Exercises: Level 3
1. Writ a function which cleans text. Clean the following text. After cleaning, count three most frequent words in the string.
1. Write 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!?`