-
Notifications
You must be signed in to change notification settings - Fork 36
Expand file tree
/
Copy pathpop_js.html
More file actions
41 lines (32 loc) · 742 Bytes
/
Copy pathpop_js.html
File metadata and controls
41 lines (32 loc) · 742 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<!DOCTYPE html>
<html>
<head>
<title>Oprah Likes You. And so do other people.</title>
<style>
/* Basic CSS comment */
body {
background: #BBB;
color: white;
width: 960px;
margin: 0 auto;
}
h1 {
font-size: 80px;
color: #333;
}
</style>
<script>
let username = prompt('Who are you');
let car = new Array('BMW','Maserati','Audi')
if (username==='aman') {
document.write('<h1>Hello ' + username + 'you won a'+ car +'</h1>');
}
else {
document.write('<h1>Hello' + username + '!');
}
</script>
</head>
<body>
<h1></h1>
</body>
</html>