调试运行
<html> <head> <title>在JavaScript中使用变量</title> </head> <body> <script language="javascript"> <!-- var name; name = "刘洪辉"; age = 22; document.write('您的姓名是:',name,'<br>'); document.write('您的年龄是:',age); //--> </script> </body> </html>