Suppose I need to implement a simple join function that takes an array and returns a concatenated string of elements separated by a separator. Kind of what built-in method Array.prototype.join does. ...

Suppose I need to implement a simple join function that takes an array and returns a concatenated string of elements separated by a separator. Kind of what built-in method Array.prototype.join does. ...