split method using string in Javascript

Split method using string in Javascript



<!DOCTYPE html>
<html>
<head>
<title>Test page</title>
<script type="text/javascript">

/*split function is basically used to split any string and convert it into an array */

var str= "THIS IS AN ARTISITIC STYLE OF REPRESENTING THINGS";
var newie = str.split(" ");

console.log(newie);



</script>

</head>
<body>
<h1></h1>
</body>
</html>




Comments

Popular posts from this blog