The output should be on the page (not in a popup and not in the console log) should look something like this:
Demonstrating countChars
countChars('This is so very interesting','e'): 3
countChars('This is so very interesting','g'): 1
countChars('This is so very interesting','z'): 0
Demonstrate your solution to the instructor.
Add a descriptive h2 heading and demonstrate the function is working properly by calling it with multiple parameters to test various cases. Your output should show the parameters passed and value returned. NOTE: This function should not perform any output (or input).
Suggested solution: split the string on the space character into an array (use built-in split function). Then look through array to find longest word.