From ae51fa792fc1a6b1d25e23c371603ef4ed1a775d Mon Sep 17 00:00:00 2001 From: annmaryvinod Date: Sat, 8 Oct 2022 20:37:39 +0530 Subject: [PATCH 1/4] added a stylesheet and changed the background color --- index.html | 2 ++ main.css | 9 +++++++++ 2 files changed, 11 insertions(+) create mode 100644 main.css diff --git a/index.html b/index.html index 14e41c3..ab4b8e2 100644 --- a/index.html +++ b/index.html @@ -3,8 +3,10 @@ Document Object Model:30 Days Of JavaScript + + diff --git a/main.css b/main.css new file mode 100644 index 0000000..da8491f --- /dev/null +++ b/main.css @@ -0,0 +1,9 @@ + +body{ + background-color: black; + +} +div.wrapper h1{ + color : #ffff; + +} From 78fdc4086ab76d04fbfd33a1841c2e678fb79423 Mon Sep 17 00:00:00 2001 From: annmaryvinod Date: Fri, 14 Oct 2022 01:25:38 +0530 Subject: [PATCH 2/4] writing hello world into the document --- 01_Day_Introduction/01_day_starter/helloworld.js | 8 +++++++- 01_Day_Introduction/01_day_starter/variable.js | 5 +++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/01_Day_Introduction/01_day_starter/helloworld.js b/01_Day_Introduction/01_day_starter/helloworld.js index 8c9e2c0..060caa5 100644 --- a/01_Day_Introduction/01_day_starter/helloworld.js +++ b/01_Day_Introduction/01_day_starter/helloworld.js @@ -1 +1,7 @@ -console.log('Hello, World!') \ No newline at end of file + +//To output in the console: +console.log('Hello, World!'); + + +//to write into the document/page +document.write("Hello World!"); \ 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 index 62558cb..f614d8e 100644 --- a/01_Day_Introduction/01_day_starter/variable.js +++ b/01_Day_Introduction/01_day_starter/variable.js @@ -8,6 +8,10 @@ let age = 100 // age in years let isMarried = true // Declaring variables with number values +// We can use keywords like var,let and const to declare variables +// let allows one time declaration and multiple time value assignment +// const allows one time declarartion as well as assignment +// var allows multiple declaration and assignment. const gravity = 9.81 // earth gravity in m/s2 const boilingPoint = 100 // water boiling point, temperature in oC @@ -18,3 +22,4 @@ const PI = 3.14 // geometrical constant let name = 'Asabeneh', //name of a person job = 'teacher', live = 'Finland' + From f66f29724929a526f90b14bfe4aa2ed7c8867bed Mon Sep 17 00:00:00 2001 From: annmaryvinod Date: Fri, 14 Oct 2022 01:27:21 +0530 Subject: [PATCH 3/4] added notes on variables in javascript --- 01_Day_Introduction/01_day_starter/variable.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/01_Day_Introduction/01_day_starter/variable.js b/01_Day_Introduction/01_day_starter/variable.js index f614d8e..1c1af5b 100644 --- a/01_Day_Introduction/01_day_starter/variable.js +++ b/01_Day_Introduction/01_day_starter/variable.js @@ -8,10 +8,11 @@ let age = 100 // age in years let isMarried = true // Declaring variables with number values + // We can use keywords like var,let and const to declare variables // let allows one time declaration and multiple time value assignment // const allows one time declarartion as well as assignment -// var allows multiple declaration and assignment. +// var allows multiple declaration and assignment const gravity = 9.81 // earth gravity in m/s2 const boilingPoint = 100 // water boiling point, temperature in oC From 66c9f866022e5be06d4bae698bf401653604c08c Mon Sep 17 00:00:00 2001 From: annmaryvinod Date: Fri, 14 Oct 2022 01:30:40 +0530 Subject: [PATCH 4/4] added notes on variables in js --- 01_Day_Introduction/01_day_starter/variable.js | 1 - 1 file changed, 1 deletion(-) diff --git a/01_Day_Introduction/01_day_starter/variable.js b/01_Day_Introduction/01_day_starter/variable.js index 1c1af5b..f71da39 100644 --- a/01_Day_Introduction/01_day_starter/variable.js +++ b/01_Day_Introduction/01_day_starter/variable.js @@ -8,7 +8,6 @@ let age = 100 // age in years let isMarried = true // Declaring variables with number values - // We can use keywords like var,let and const to declare variables // let allows one time declaration and multiple time value assignment // const allows one time declarartion as well as assignment