该练习答案如下
<!DOCTYPE HTML>
<html >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>数组</title>
<script type="text/javascript">
//创建数组
var arr=['*','**','***','****']
//显示数组长度
document.write(arr.length);
//将数组内容输出,完成达到的效果。
document.write(`<br/>`);
document.write(arr[0]);
document.write(`<br/>`);
document.write(arr[1]);
document.write(`<br/>`);
document.write(arr[2]);
document.write(`<br/>`);
document.write(arr[3]);
</script>
</head>
<body>
</body>
</html>