Skip to content

Commit 8bc5375

Browse files
committed
varaables
0 parents  commit 8bc5375

File tree

3 files changed

+73
-0
lines changed

3 files changed

+73
-0
lines changed

app.js

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
var username = "my name"
2+
var message = 'hello would'
3+
alert('jhone Doe')
4+
alert('15 year old')
5+
alert('certified mobile application devalopment')
6+
alert('PLZZA\rPLZZ\rPLZ\rPL\rP')
7+
var email = 'My email address is [email protected]'
8+
alert(email)
9+
var book = 'A smarter\rway to learn javascript'
10+
alert('I am trying to learn from the book ' + book)
11+
var text = 'Yah! I can write HTML conrtent throught javascript'
12+
document.write(text)

index.html

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<title>Variables for Strings</title>
7+
<link rel="stylesheet" href="./style.css" />
8+
</head>
9+
<body>
10+
<div class="blue"></div>
11+
<div class="heading">
12+
<h1>Variables for Strings</h1>
13+
</div>
14+
<div class="blue-buttom">
15+
<div class="para">
16+
Assinment # 2 <br />
17+
JAVASCRIPT
18+
</div>
19+
</div>
20+
21+
<script src="./app.js"></script>
22+
</body>
23+
</html>

style.css

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
* {
2+
box-sizing: border-box;
3+
padding: 0%;
4+
margin: 0%;
5+
}
6+
h1 {
7+
text-transform: uppercase;
8+
display: flex;
9+
flex-direction: row;
10+
flex-wrap: wrap;
11+
justify-content: center;
12+
align-items: center;
13+
font-size: xxx-large;
14+
margin: 100px;
15+
color: blue;
16+
}
17+
.blue {
18+
background-color: blue;
19+
width: 100%;
20+
height: 100px;
21+
}
22+
.blue-buttom {
23+
background-color: blue;
24+
width: 100%;
25+
height: 300px;
26+
display: flex;
27+
justify-content: flex-end;
28+
flex-direction: column;
29+
align-items: center;
30+
gap: 10px;
31+
}
32+
.heading {
33+
width: 100%;
34+
height: 200px;
35+
}
36+
.para {
37+
color: #fff;
38+
}

0 commit comments

Comments
 (0)