JAVASCRIPT - HOW TO Count # String Occurences Within Another String

JAVASCRIPT - HOW TO Count the Number of Times a String Occurs Within Another String

Home Short:

You would think Javascript would have a built in function to tell us the number of times word appears in string or the number of times a character appears in a string, but Javscript is a very rich programming language so lets not complain

S
H
A
R
E