<head>
<script type="text/javascript">
var my_string = "Hello My Name Is Kusal";
var split_var = my_string.split(" "); //separate by space
alert(split_var[0]); //Hello
alert(split_var[1]); //My
alert(split_var[4]); //Kusal
</script>
</head>
Get Free Sinhala IT Learning Videos Kuppiya.com
No comments:
Post a Comment