This commit is contained in:
2024-07-05 06:29:05 +08:00
parent de38186cef
commit 797149d7db
3 changed files with 83 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>JavaScript Example</title>
</head>
<body>
<h2>Hello, World!</h2>
<div id="content"></div>
<script>
var username = "Guan";
let year = 1993;
const country = "China";
document.getElementById('content').innerHTML = username + "<br>" + year + "<br>" + country;
</script>
</body>
</html>