Skip to content

Commit 1f93738

Browse files
committed
Day 22
1 parent d585463 commit 1f93738

File tree

4 files changed

+41
-1
lines changed

4 files changed

+41
-1
lines changed

Day 22/css/style.css

Whitespace-only changes.

Day 22/index.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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>JavaScript Tutorial</title>
7+
<link rel="stylesheet" href="./css/style.css" />
8+
</head>
9+
<body>
10+
Welcome to JavaScript Tutorials!
11+
<script src="./js/script.js"></script>
12+
</body>
13+
</html>

Day 22/js/script.js

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
console.log('Welcome to day 22')
2+
console.log('Objects')
3+
4+
var characterDetails = {
5+
name: 'Monkey D. Luffy',
6+
age: 19,
7+
fatherName: 'Monkey D. Dragon',
8+
brothers: ['Ace', 'Sabo'],
9+
favoriteFood: 'Meat',
10+
shout: function() {
11+
console.log('gomu gomu no....')
12+
}
13+
}
14+
15+
characterDetails.age = 20
16+
17+
console.log(characterDetails)
18+
19+
characterDetails.shout()

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,4 +84,12 @@ Day 19
8484
```
8585
Day 20
8686
```
87-
* [Day 20](https://blog.nerdjfpb.com/javascript-part-20/) - Array
87+
* [Day 20](https://blog.nerdjfpb.com/javascript-part-20/) - Array
88+
```
89+
Day 21
90+
```
91+
* [Day 21](https://blog.nerdjfpb.com/javascript-part-21/) - More About Array
92+
```
93+
Day 22
94+
```
95+
* [Day 22](https://blog.nerdjfpb.com/javascript-part-22/) - Object

0 commit comments

Comments
 (0)