Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
文件
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
03. JS-基础语法-变量.html 863 Bytes
Copy Edit Raw Blame History
enming.liu authored 2024-01-09 18:33 . 三贱客
<!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>JS-基础语法</title>
</head>
<body>
</body>
<script>
// 弱变量
// var -- 全局变量
//let -- 局部变量
//const --常量(定义后不可改变)
{
var str = "这是一个最好的时代,\n" +
"科技的发展给予了每个人创造价值的可能性;\n" +
"这也是一个最充满想象的时代,\n" +
"每一位心怀梦想的人,终会奔向星辰大海。\n" +
"百度与你们一起仰望星辰大海,携手共筑未来!"
let a = 1111
const c="s"
console.log(str)
alert(a)
alert(c)
}
</script>
</html>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化