JavaScript变量

原创2019-07-11 22:22:1615
摘要:<!DOCTYPE html> <html> <head>  <meta charset="utf-8">  <title>中文网作业(JavaScript变量)</title> <body> <script> var x=5; va
<!DOCTYPE html>
<html>
<head> 
<meta charset="utf-8"> 
<title>中文网作业(JavaScript变量)</title>
<body>
<script>
var x=5;
var y=6;
var z=x+y;
document.write(x + "<br>");
document.write(y + "<br>");
document.write(z + "<br>");
</script>
</body>
</html>

yunxing.JPG

批改老师:Peter-Zhu批改时间:2019-07-13 13:15:37
老师总结:document.write(x + "<br>"); document.write(y + "<br>"); document.write(z + "<br>"); 应该直接输出到控制台, console.log()

发布手记

热门词条

第九期线上培训班