Print an array(object?) without comma seperator
arrays, javascript, object, output
Solution
You ruled out the join method why, exactly? It takes a parameter, the separator, which you can then use to specify no separator:
myArray.join("");
I recommend reading up on the documentation for `.join()`. Also, I wouldn't recommend you use document.write, it has very few good applications.
Problem
I am currently writing a large amount of code, but I will keep it simple. I have a javascript array (possibly an object, still unsure exactly of the conventional naming), here is the initialization code: ``` var myArray = ["assignS" , ";" , "S"] ``` This is what I get as a console.log() from firebug on the element. There is too much code to post as it is assigned multiple values through many for loops. So this array (or object) is printed later as follows: ``` document.write("S -> " + myArray); ``` output: ``` S -> assignS,;,S ``` I do not want these commas in the result, it poses problems as some elements in the array may be commas themselves. I have ruled out the .join() method because of this, and am unsure how to proceed.