I need a clear explanation and example of the use of the Split method in a JavaScript function.