From fe956a5c62064a6c70adbccfc0badc716d088146 Mon Sep 17 00:00:00 2001 From: Norman Harold Bernales Date: Fri, 17 Mar 2023 23:48:49 +0800 Subject: [PATCH] Adding Variable.js Declaring types,number values --- .../01_day_starter/variable.js | 20 ------------------- .../1_day_of_javascript/index.html | 1 + .../1_day_of_javascript/variable.js | 19 ++++++++++++++++++ 01_Day_Introduction/variable.js | 17 ---------------- 4 files changed, 20 insertions(+), 37 deletions(-) delete mode 100644 01_Day_Introduction/01_day_starter/variable.js create mode 100644 01_Day_Introduction/1_day_of_javascript/variable.js delete mode 100644 01_Day_Introduction/variable.js 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/index.html b/01_Day_Introduction/1_day_of_javascript/index.html index 20d6053..660f03d 100644 --- a/01_Day_Introduction/1_day_of_javascript/index.html +++ b/01_Day_Introduction/1_day_of_javascript/index.html @@ -7,6 +7,7 @@ Day 1 + 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'