join Summary Returns a string representation of the array with each element separated by commas. Signatures Click on a signature to select it and view its documentation. public string join() public string join(string separator) Usage public string join() public string join(string separator) Returns A string representation of the array with each element separated by commas. A string representation of the array with each element separated by the specified string. Parameters separator The string to separate each element with. Description Returns a string representation of the array with each element separated by commas. This method does not mutate the array. Returns a string representation of the array with each element separated by the specified string. This method does not mutate the array. Examples Basic Usage 123import System; Console.log([1, 2, 3].join()); // "1,2,3" Basic Usage 123import System; Console.log([1, 2, 3].join(" :: ")); // "1 :: 2 :: 3" Share HTML | BBCode | Direct Link