16、监测数据类型

yu
yu
2024-10-04 / 0 评论 / 3 阅读 / 正在检测是否收录...
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        let num = 10
        console.log(typeof num);
        let str = 'pink'
        console.log(typeof str);
        let str1 = '10'
        console.log(typeof str1);
        let flag = false
        console.log(typeof flag);
        let un
        console.log(typeof un);
        let obj = null
        console.log(typeof null);


        let num1 = prompt('请输入第一个数:')
    </script>
</body>
</html>
0

评论 (0)

取消