js 的变量名规则借鉴于java , C , C++,大小写敏感。使用Unicode 字符集。中文,德文,别的文字也可以。不推荐,实际工作中还是建议用英文。
<html>
<head>
<script>
let 我的变量 = "I am a js coder.";
alert(我的变量);
</script>
</head>
</html>
js 的变量名规则借鉴于java , C , C++,大小写敏感。使用Unicode 字符集。中文,德文,别的文字也可以。不推荐,实际工作中还是建议用英文。
<html>
<head>
<script>
let 我的变量 = "I am a js coder.";
alert(我的变量);
</script>
</head>
</html>

被折叠的 条评论
为什么被折叠?
