<!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 a = 12.3; //數(shù)字
var b = "硬件一班" //字符串
var c = null; //空值
var d = undefined; //未定義
var e =true; //布爾值 是
//引用數(shù)據(jù)類(lèi)型,又稱(chēng)復(fù)雜數(shù)據(jù)類(lèi)型
var arr = [1,2, "aaa",false]; //數(shù)據(jù),[]
var obj = { name: "硬件一班" }; //對(duì)象{}
var reg = /\d+/; //正則【了解】?jī)蓚€(gè)斜杠中加內(nèi)容资铡,暫時(shí)了解
var fn = function (){} //函數(shù)
//引用數(shù)據(jù)類(lèi)型分為
//1. 對(duì)象數(shù)據(jù)類(lèi)型 對(duì)象、 數(shù)據(jù)隘道、 正則..
//2.函數(shù)數(shù)據(jù)類(lèi)型 函數(shù)
</script>
</body>
</html>