forked from bethrobson/Head-First-JavaScript-Programming
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbirthday.html
More file actions
19 lines (19 loc) · 378 Bytes
/
birthday.html
File metadata and controls
19 lines (19 loc) · 378 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Happy Birthday</title>
</head>
<body>
<script>
var name = "Joe";
var i = 0;
while (i < 2) {
document.write("Happy Birthday to you.<br>");
i = i + 1;
}
document.write("Happy Birthday dear " + name + ",<br>");
document.write("Happy Birthday to you.<br>");
</script>
</body>
</html>