In this challenge Find Whitespace with Regular Expressions we have to count all the whitespace characters in the sentence.
One of the requirements is:
“Use the /\s+/g regular expression to find the spaces in testString.”
But when I use: var expression = /\s/g;
It finds 7 characters anyway.
So what exactly difference does that +
sign makes?