Js equivalent to python join
In Python, the join() method is used to join a sequence of strings (e.g., list, tuple, or string) with a specified separator. The separator is placed between each string in the sequence and the result is a single string.Example of Python join()Pythonl = ['Hello', 'GeeksforGeeks'] ans = ' '.join(l) p