What is Join() in jquery? for example:
var newText = $(\"p\").text().split(\" \").join(\" \");
That's not a jQuery function - it's the regular Array.join function.
It converts an array to a string, putting the argument between each element.