У вашего броузера проблема в совместимости с HTML5
In this video we will learn to count specific word in a given string.
For example, if we have a sentence:
"I love chocolate and chocolate ice cream."
Then the word "chocolate" occurs TWICE in the given sentence.
Similarly if we have a string:
"Sun emits light while Moon reflects light."
And we are asked to count the word: "light"
Then our answer is 2, as the word "light" occur twice in the given string.