Skip to content

Commit 24df9f1

Browse files
committed
day 1
0 parents  commit 24df9f1

27 files changed

Lines changed: 523 additions & 0 deletions

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
draft.md
2+
playground
3+
/playground
4+
.DS_Store

01-Day/helloworld.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
console.log('Hello, World!')

01-Day/index.html

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<!DOCTYPE html>
2+
<html>
3+
4+
<head>
5+
<title>30DaysOfJavaScript</title>
6+
</head>
7+
8+
<body>
9+
<button onclick="alert('Welcome to 30DaysOfJavaScript!');">Click Me</button>
10+
<script src="./helloworld.js"></script>
11+
<script src="./introduction.js"></script>
12+
<script src="./varaible.js"></script>
13+
<script src="./main.js"></script>
14+
15+
</body>
16+
17+
</html>

01-Day/introduction.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
console.log('Welcome to 30DaysOfJavaScript')

01-Day/main.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
console.log(firstName, lastName, country, city, age, isMarried)
2+
console.log(gravity, boilingPoint, PI) // 9.81, 100, 3.14
3+
console.log(name, job, live)

01-Day/varaible.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// Declaring different variables of different data types
2+
let firstName = 'Asabeneh' // first name of a person
3+
let lastName = 'Yetayeh' // last name of a person
4+
let country = 'Finland' // country
5+
let city = 'Helsinki' // capital city
6+
let age = 100 // age in years
7+
let isMarried = true
8+
9+
// Declaring variables with number values
10+
const gravity = 9.81 // earth gravity in m/s2
11+
const boilingPoint = 100 // water boiling point, temperature in oC
12+
const PI = 3.14 // geometrical constant
13+
14+
// Variables can also be declaring in one line separated by comma
15+
let name = 'Asabeneh', //name of a person
16+
job = 'teacher',
17+
live = 'Finland'

images/30DaysOfJavaScript.png

84.7 KB
Loading
1.32 MB
Loading

images/arithmetic.png

338 KB
Loading
509 KB
Loading

0 commit comments

Comments
 (0)