[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

댓글을 달아 주세요