HTML 5_Deklarasi variabel, memberi nilai, dan menampilkannya

<html>
<body>
<script type="text/javascript">
var name = "Hege"
document.write(name)
document.write("<h1>"+name+"</h1>")
</script>
<p>This example declares a variable, assigns a value to it, and then displays
the variable.</p>
<p>Then the variable is displayed one more time, only this time as a
heading.</p>
</body>
</html>
Category: 0 komentar

0 komentar:

Posting Komentar