split in java script
this function divides the string as array element based on the input delimiter
<script>
function fun1()
{
str="welcome to javascript";
arr= str.split("");
alert(arr[1]);
}
</script>
this function divides the string as array element based on the input delimiter
<script>
function fun1()
{
str="welcome to javascript";
arr= str.split("");
alert(arr[1]);
}
</script>