Skip to content

Commit d5a85c1

Browse files
authored
Create pop_js.html
1 parent 7430e1d commit d5a85c1

1 file changed

Lines changed: 41 additions & 0 deletions

File tree

‎pop_js.html‎

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<!DOCTYPE html>
2+
<html>
3+
4+
<head>
5+
<title>Oprah Likes You. And so do other people.</title>
6+
7+
<style>
8+
/* Basic CSS comment */
9+
10+
body {
11+
background: #BBB;
12+
color: white;
13+
width: 960px;
14+
margin: 0 auto;
15+
}
16+
17+
h1 {
18+
font-size: 80px;
19+
color: #333;
20+
}
21+
</style>
22+
23+
<script>
24+
let username = prompt('Who are you');
25+
let car = new Array('BMW','Maserati','Audi')
26+
if (username==='aman') {
27+
document.write('<h1>Hello ' + username + 'you won a'+ car +'</h1>');
28+
}
29+
else {
30+
document.write('<h1>Hello' + username + '!');
31+
}
32+
33+
</script>
34+
35+
</head>
36+
37+
<body>
38+
<h1></h1>
39+
</body>
40+
41+
</html>

0 commit comments

Comments
 (0)