xxxxxxxxxx
<!DOCTYPE html>
<html>
<title>JavaScript 数组typeof运算符使用示例 - 基础教程(div.cn)</title>
<body>
<h2> JavaScript数组</h2>
<p> JavaScript中的typeof运算符为数组返回"object":</p>
<p id="result"></p>
<script>
let fruits = ["Apple", "Mango", "Banana", "Orange"];
document.getElementById("result").innerHTML = typeof fruits;
</script>
</body>
</html>