<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>无标题文档</title>
<script type="text/javascript">
var a;
a=10086;
alert(a);
document.writeln(a);
console.log(a);
//如果重新声明变量的话,值只要不重新赋予就不会丢失
var a;
alert(a);
document.writeln(a);
console.log(a);
</script>
</head>
<body>
<!--变量命名规则与java基本一样-->
</body>
</html>