<!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>
/*js数据类型
基本数据类型
string 字符串
null 空
number 数值
boolean 布尔值
undefined 未定义
引用数据类型
object 对象
*/
//typeof 可以判断数据类型
var b='123'//字符串
var a=123//数值
//var obj=null空对象
console.log(a);
console.log(b);
console.log("a的数据类型"+typeof(a));
console.log("b的数据类型"+typeof(b));
var bol1=true;
var bol2=false;
console.log(bol1);
console.log(bol2);
var c;//变量被声明没有被赋值的时候的初始值就是undefined
c='qwe'
console.log(c);
</script>
</body>
</html>