Pages

join( ) in java script

Thursday, 5 April 2012

join() in java script
to join the element of an array with input string. it returns the output as a string
<script>
function fun1()
{
arr=new array(10,20,30)
str =arr.join('/");
alert(str);
}
</script>
<input type=" button" value="click"onclick="fun1()">


 

Most Reading