[javascript] foreach

WEB 2016. 5. 3. 23:58

 

var str_arr = Array();

str_arr.push( "a" );

str_arr.push( "b" );

str_arr.push( "c" );

 

for( var i in str_arr )

{

document.write( str_arr[i] + '<br>' );

}

 

 

Posted by 꼬장e
,