Write a JavaScript program to display pattern of characters of given string.
<html>
<head>
<title>Display character pattern</title>
</head>
<body>
<script>
var name = prompt("Enter ur name");
for(var i=0; i<name.length; i++)
{
for(var j=0; j<=i; j++)
{
document.write(name.charAt(j));
}
document.write("<br/>");
}
</script>
</body>
</html>
