九九乘法表
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>九九乘法表</title>
</head>
<body>
<script>
for(let i=1;i<=9;i++)
{
for(let j=1;j<=i;j++)
document.write(`${i}*${j}==${i*j}  `)
document.write(`<br>`)
}
</script>
</body>
</html>
数组遍历
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>数组遍历</title>
</head>
<body>
<script>
let arr=[[666,12,'li'],[777,13,'dong'],[888,14,'rui']]
for(let i in arr){
for(let j in arr[i]){
document.write(arr[i][j])
document.write(` `)
}
document.write(`<br>`)
}
</script>
</body>
</html>