<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<script>
var age = 18;
var name = "wellerman";
var flag = true;
var flag = false;
var user = {
name : "龙年行大运耶",
age : 19,
learn :true
}
console.log(typeof age);
console.log(typeof name);
console.log(typeof flag);
console.log(typeof user);
console.log(typeof null);
console.log(typeof undefined);
</script>
</body>
</html>
相关解释:
- 数值
- 字符串
- 布尔值
- 对象
- null
- undefined
多多关照不迷路哟!!!
谢谢