In the body, it can't present the variable value, but only shows variable name "var1". Besides, I use "\n" in document.write, but how come it doesn't break the line in the result?
<script type="text/javascript">
var var1=123;
document.write("<strong>Hello World! \nThis is the second line.</strong>");
</script>
</head>
<body>
<h1>the value for number is: + var1</h1>
</body>