第二天

This commit is contained in:
syx_computer
2025-10-13 10:15:32 +08:00
parent 2e4fbfc22c
commit 61ec7c9468
18 changed files with 16637 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>JS-数据类型</title>
</head>
<body>
<script>
//1. 数据类型
// alert(typeof 10);
// alert(typeof 1.5);
// alert(typeof true);
// alert(typeof false);
// alert(typeof "Hello");
// alert(typeof 'JS');
// alert(typeof `JavaScript`);
// alert(typeof null);
// let a ;
// alert(typeof a);
// 2.模板字符串
let name = `小王`;
let age = 18;
console.log(`我是${name},我今年${age}`);
console.log('我是' + name + ',我今年' + age + '岁');
</script>
</body>
</html>