From b1c83a1db4d4ac91833d19919663a23dd74e135c Mon Sep 17 00:00:00 2001 From: Joseph Bak <36170953+josephbak@users.noreply.github.com> Date: Sun, 3 Apr 2022 13:55:53 -0400 Subject: [PATCH] Fixes Exercises:Level 3 in 12_day_regular_expressions.md Fixed an indentation issue that results in an unintended result. --- 12_Day_Regular_expressions/12_day_regular_expressions.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/12_Day_Regular_expressions/12_day_regular_expressions.md b/12_Day_Regular_expressions/12_day_regular_expressions.md index 4107b60..6f560d8 100644 --- a/12_Day_Regular_expressions/12_day_regular_expressions.md +++ b/12_Day_Regular_expressions/12_day_regular_expressions.md @@ -496,11 +496,12 @@ distance = 12 ```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!?` 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 - ``` + ``` + 2. Write a function which find the most frequent words. After cleaning, count three most frequent words in the string. ```js