Fetch the repository succeeded.
This action will force synchronization from 万少/前端77, which will overwrite any changes that you have made since you forked the repository, and can not be recovered!!!
Synchronous operation will process in the background and will refresh the page when finishing processing. Please be patient.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0,maximum-scale=1,minimum-scale=1,user-scalable=no"
/>
<title>02-let、const、var.html</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
</style>
</head>
<body>
<script>
/*
1 let、const、var 都可以用来声明变量
2 var 过时的技术 有很多弊端-外面很多老程序员 以为 了解var 各种各样的弊端-是技术 错误!
1 如果你在网络上看文章 或者 视频 只要它使用 var 不用看 过时!!
2 快毕业了 去刷面试题 不晚!
3 let 和 const
4 const 声明了变量之后 这个变量 永远不能被修改!!! const 声明的变量 叫做 常量!!
1 使用了const定义的变量 表示它永远不会被改变
项目名称 - 拼汐汐
2 规范程序员设计 我们的程序
哪些变量需要被修改 哪些不要被修改
10ml 100ml
3 什么时候使用const
1 多看老师的使用
2 担心 先使用 let
4 对于 有经验的程序员 都知道const和let区别程序员
能使用 const 就不使用let
5 let
定义变量 也可以修改变量
*/
const username = '悟空';
// 修改 常量
username = '八戒';
</script>
</body>
</html>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。