diff --git a/01_Day_Introduction/01_day_starter/helloworld.js b/01_Day_Introduction/01_day_starter/helloworld.js deleted file mode 100644 index 8c9e2c0..0000000 --- a/01_Day_Introduction/01_day_starter/helloworld.js +++ /dev/null @@ -1 +0,0 @@ -console.log('Hello, World!') \ No newline at end of file diff --git a/01_Day_Introduction/01_day_starter/index.html b/01_Day_Introduction/01_day_starter/index.html deleted file mode 100644 index 7ed5b19..0000000 --- a/01_Day_Introduction/01_day_starter/index.html +++ /dev/null @@ -1,19 +0,0 @@ - - - - - 30DaysOfJavaScript - - - -

30DaysOfJavaScript:03 Day

-

Introduction

- - - - - - - - - \ No newline at end of file diff --git a/01_Day_Introduction/01_day_starter/introduction.js b/01_Day_Introduction/01_day_starter/introduction.js deleted file mode 100644 index 316199c..0000000 --- a/01_Day_Introduction/01_day_starter/introduction.js +++ /dev/null @@ -1 +0,0 @@ -console.log('Welcome to 30DaysOfJavaScript') \ No newline at end of file diff --git a/01_Day_Introduction/01_day_starter/main.js b/01_Day_Introduction/01_day_starter/main.js deleted file mode 100644 index 2b952bc..0000000 --- a/01_Day_Introduction/01_day_starter/main.js +++ /dev/null @@ -1,4 +0,0 @@ -// the variable values can be accessed from other variable.js file -console.log(firstName, lastName, country, city, age, isMarried) -console.log(gravity, boilingPoint, PI) // 9.81, 100, 3.14 -console.log(name, job, live) \ No newline at end of file diff --git a/01_Day_Introduction/01_day_starter/variable.js b/01_Day_Introduction/01_day_starter/variable.js deleted file mode 100644 index 62558cb..0000000 --- a/01_Day_Introduction/01_day_starter/variable.js +++ /dev/null @@ -1,20 +0,0 @@ -// Declaring different variables of different data types - -let firstName = 'Asabeneh' // first name of a person -let lastName = 'Yetayeh' // last name of a person -let country = 'Finland' // country -let city = 'Helsinki' // capital city -let age = 100 // age in years -let isMarried = true - -// Declaring variables with number values - -const gravity = 9.81 // earth gravity in m/s2 -const boilingPoint = 100 // water boiling point, temperature in oC -const PI = 3.14 // geometrical constant - -// Variables can also be declaring in one line separated by comma - -let name = 'Asabeneh', //name of a person - job = 'teacher', - live = 'Finland' diff --git a/01_Day_Introduction/1_day_of_javascript/helloworld.js b/01_Day_Introduction/1_day_of_javascript/helloworld.js new file mode 100644 index 0000000..4a41eb8 --- /dev/null +++ b/01_Day_Introduction/1_day_of_javascript/helloworld.js @@ -0,0 +1 @@ +console.log("Hello World!"); //print Hello World! in the console \ No newline at end of file diff --git a/01_Day_Introduction/1_day_of_javascript/index.html b/01_Day_Introduction/1_day_of_javascript/index.html new file mode 100644 index 0000000..6e0c088 --- /dev/null +++ b/01_Day_Introduction/1_day_of_javascript/index.html @@ -0,0 +1,16 @@ + + + + + + + Day 1 + + + + + + +

Javascript Day 1

+ + \ No newline at end of file diff --git a/01_Day_Introduction/1_day_of_javascript/introduction.js b/01_Day_Introduction/1_day_of_javascript/introduction.js new file mode 100644 index 0000000..8dd9af0 --- /dev/null +++ b/01_Day_Introduction/1_day_of_javascript/introduction.js @@ -0,0 +1 @@ +console.log('Welcome to Javascript' + ' Day 1'); //print Welcome to Javascript Day 1 \ No newline at end of file diff --git a/01_Day_Introduction/1_day_of_javascript/main.js b/01_Day_Introduction/1_day_of_javascript/main.js new file mode 100644 index 0000000..887822a --- /dev/null +++ b/01_Day_Introduction/1_day_of_javascript/main.js @@ -0,0 +1,5 @@ +//The variable values can be accessed from other js file. + +console.log(firstName, lastName, country, city, age, single); +console.log(gravity, boilingPoint, PI); //Output 9.81, 100, 3.14. +console.log(name, job, live); //Output Kyrie, Player, Australia. \ No newline at end of file diff --git a/01_Day_Introduction/1_day_of_javascript/variable.js b/01_Day_Introduction/1_day_of_javascript/variable.js new file mode 100644 index 0000000..5c8a764 --- /dev/null +++ b/01_Day_Introduction/1_day_of_javascript/variable.js @@ -0,0 +1,19 @@ +//Declaring different variables of different Data types. + +let firstName = 'Norman'; //First name of a person. +let lastName = 'Taz'; //Last name of a person. +let country = 'Philippines'; //Name of a country. +let city = 'Manila'; //Name of a city. +let age = 13; //Age for years. +let single = true; //Status of the person. + + +//Declaring values with number values. + +const gravity = 9.81; //Earth Gravitiy in m/s2. +const boilingPoint = 100; //Water boiling point, temperature in oC. +const PI = 4.14 //The number π is a mathematical constant that is the ratio of a circle's circumference to its diameter, approximately equal to 3.14159. + +//Variables can also be declared in one line separated by comma. + +let name = 'Kyrie', job = 'Player', live = 'Australia'; \ No newline at end of file diff --git a/01_Day_Introduction/variable.js b/01_Day_Introduction/variable.js deleted file mode 100644 index f5872af..0000000 --- a/01_Day_Introduction/variable.js +++ /dev/null @@ -1,17 +0,0 @@ -// Declaring different variables of different data types -let firstName = 'Asabeneh' // first name of a person -let lastName = 'Yetayeh' // last name of a person -let country = 'Finland' // country -let city = 'Helsinki' // capital city -let age = 100 // age in years -let isMarried = true - -// Declaring variables with number values -const gravity = 9.81 // earth gravity in m/s2 -const boilingPoint = 100 // water boiling point, temperature in oC -const PI = 3.14 // geometrical constant - -// Variables can also be declaring in one line separated by comma -let name = 'Asabeneh', //name of a person - job = 'teacher', - live = 'Finland'