From 0ae11882765d471e6a9de2cc7c9effef9a84384f Mon Sep 17 00:00:00 2001 From: Norman Harold Bernales Date: Sat, 18 Mar 2023 00:18:41 +0800 Subject: [PATCH] Accessing values in js using main.js --- 01_Day_Introduction/01_day_starter/index.html | 19 ------------------- 01_Day_Introduction/01_day_starter/main.js | 4 ---- .../1_day_of_javascript/index.html | 4 ++-- .../1_day_of_javascript/main.js | 5 +++++ 4 files changed, 7 insertions(+), 25 deletions(-) delete mode 100644 01_Day_Introduction/01_day_starter/index.html delete mode 100644 01_Day_Introduction/01_day_starter/main.js create mode 100644 01_Day_Introduction/1_day_of_javascript/main.js 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/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/1_day_of_javascript/index.html b/01_Day_Introduction/1_day_of_javascript/index.html index 660f03d..6e0c088 100644 --- a/01_Day_Introduction/1_day_of_javascript/index.html +++ b/01_Day_Introduction/1_day_of_javascript/index.html @@ -8,9 +8,9 @@ + - - +

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