xxxxxxxxxx
<html lang="en">
<head>
<meta charset="utf-8">
<title>Writing into an Browser Window with JavaScript</title>
</head>
<body>
<script>
// Printing a simple text message
document.write("Hello World!"); // Prints: Hello World!
document.write("<br>");
// Printing a variable value
let x = 10;
let y = 20;
let sum = x + y;
document.write(sum); // Prints: 30
</script>
</body>
</html>