Return to Snippet

Revision: 13741
at May 4, 2009 21:54 by cobra90nj


Updated Code
//coded by cobra90nj

var str = "";

var arrname = new Array(5);
arrname[0] = "Hi, "; 
arrname[1] = "this "; 
arrname[2] = "is "; 
arrname[3] = "an "; 
arrname[4] = "example.";

function arrtostr(arry) 
{
	for (var n in arry) {
		str += arry[n];
	}
	
	return str;
}

alert(this.arrtostr(arrname));

Revision: 13740
at May 4, 2009 21:49 by cobra90nj


Initial Code
//coded by cobra90nj

var str = "";

var arrname = new Array(5);
arrname[0] = "Hi, "; 
arrname[1] = "this "; 
arrname[2] = "is "; 
arrname[3] = "an "; 
arrname[4] = "example.";

function arrtostr(arry) 
{
	for (n in arry) {
		str += arry[n];
	}
	
	return str;
}

alert(this.arrtostr(arrname));

Initial URL

                                

Initial Description

                                

Initial Title
Array to String

Initial Tags
javascript, array

Initial Language
JavaScript