View Full Version : No comma


Meizawotmeiz
07-03-2003, 04:02 PM
Is there any way to make a javascript array and leave out the commas between each thing in the array so it looks like 123 instead of 1,2,3,

amicus
07-03-2003, 04:51 PM
the commas are how the array gets delimited so you really can't get rid of them. you can try setting the items one at a time like this:

var myArray = new Array();

myArray[ 0 ] = "item one";
myArray[ 1 ] = "item two";

dandeman2k
07-04-2003, 04:11 PM
Do you mean a comma while you make the array show up on screen or a comme while putting them in. For showing it up on screen a script could easily be written to avoid the commas and probably already has.