Test for 5

by Lisa French

HTML

<body>
<p id="demo">Click the button to display the array values after the split.</p>

<button onclick="myFunction()">Try it</button>

</body>

JavaScript

function myFunction()
{
var str = "How are you doing today?";
var res = str.split("", 20);
document.getElementById("demo").innerHTML=res;
}