:) First of all, sorry my bady english :p I was taking a look to the next js code fragment:
var classes = element.className.split(/\\s+/);
That c
The difference between .split(" ") and .split(/\s+/) is:
The regex " "
The regex /\s+/
Short:
" "
splits the array at one single space character.
/\s/
splits the array at every kind of whitespace character
+
Matches between one and unlimitted times