From cfa22ac7007fa694d242eabcdff6c0c93944cc83 Mon Sep 17 00:00:00 2001 From: Madelyn Romero Date: Tue, 29 Apr 2025 17:10:26 -0600 Subject: [PATCH 1/8] Create gitignore --- .gitignore | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000000..a0f0e53867 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.vscode +.DS_Store From 408e206c37cd0800823e36a7a2a92cf0f447a927 Mon Sep 17 00:00:00 2001 From: Madelyn Romero Date: Tue, 29 Apr 2025 17:12:08 -0600 Subject: [PATCH 2/8] Complete values and variables practice --- 01-Fundamentals-Part-1/starter/assignments.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 01-Fundamentals-Part-1/starter/assignments.js diff --git a/01-Fundamentals-Part-1/starter/assignments.js b/01-Fundamentals-Part-1/starter/assignments.js new file mode 100644 index 0000000000..d458a5b88d --- /dev/null +++ b/01-Fundamentals-Part-1/starter/assignments.js @@ -0,0 +1,12 @@ +// JavaScript Fundamentals 1 + + +// Values and Variables + +let country = "United States of America"; +let continent = "North America"; +let population = 340.1; + +console.log(country); +console.log(continent); +console.log(population); From 0acd1b2eac4d026dccf7e81815e54db4f9294ac3 Mon Sep 17 00:00:00 2001 From: Madelyn Romero Date: Tue, 29 Apr 2025 17:13:04 -0600 Subject: [PATCH 3/8] Complete data types practice --- 01-Fundamentals-Part-1/starter/assignments.js | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/01-Fundamentals-Part-1/starter/assignments.js b/01-Fundamentals-Part-1/starter/assignments.js index d458a5b88d..2dda5ba339 100644 --- a/01-Fundamentals-Part-1/starter/assignments.js +++ b/01-Fundamentals-Part-1/starter/assignments.js @@ -7,6 +7,17 @@ let country = "United States of America"; let continent = "North America"; let population = 340.1; -console.log(country); -console.log(continent); -console.log(population); +// console.log(country); +// console.log(continent); +// console.log(population); + + +// Data Types + +let isIsland = false; +let language; + +console.log(typeof isIsland); +console.log(typeof population); +console.log(typeof country); +console.log(typeof language); From 921aa1bd9bab1f8eedf9d234655530f334d17930 Mon Sep 17 00:00:00 2001 From: Madelyn Romero Date: Tue, 29 Apr 2025 17:14:01 -0600 Subject: [PATCH 4/8] Complete let, const, var practice --- 01-Fundamentals-Part-1/starter/assignments.js | 28 +++++++++++++------ 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/01-Fundamentals-Part-1/starter/assignments.js b/01-Fundamentals-Part-1/starter/assignments.js index 2dda5ba339..1a1f871fa4 100644 --- a/01-Fundamentals-Part-1/starter/assignments.js +++ b/01-Fundamentals-Part-1/starter/assignments.js @@ -3,9 +3,9 @@ // Values and Variables -let country = "United States of America"; -let continent = "North America"; -let population = 340.1; +// let country = "United States of America"; +// let continent = "North America"; +// let population = 340.1; // console.log(country); // console.log(continent); @@ -14,10 +14,20 @@ let population = 340.1; // Data Types -let isIsland = false; -let language; +// let isIsland = false; +// let language; + +// console.log(typeof isIsland); +// console.log(typeof population); +// console.log(typeof country); +// console.log(typeof language); + -console.log(typeof isIsland); -console.log(typeof population); -console.log(typeof country); -console.log(typeof language); +// let, const, and var + +const country = "United States of America"; +const continent = "North America"; +let population = 340.1; +const isIsland = false; +const language = "English"; +// isIsland = true; From 1b46b132b7426d5ba26d2d47c59395cbbc840ecd Mon Sep 17 00:00:00 2001 From: Madelyn Romero Date: Tue, 29 Apr 2025 17:15:00 -0600 Subject: [PATCH 5/8] Allow auto styling of HTML --- 01-Fundamentals-Part-1/starter/index.html | 60 +++++++++++++---------- 1 file changed, 33 insertions(+), 27 deletions(-) diff --git a/01-Fundamentals-Part-1/starter/index.html b/01-Fundamentals-Part-1/starter/index.html index 59529c7923..92462e2bda 100755 --- a/01-Fundamentals-Part-1/starter/index.html +++ b/01-Fundamentals-Part-1/starter/index.html @@ -1,29 +1,35 @@ - - - - - JavaScript Fundamentals – Part 1 - - - -

JavaScript Fundamentals – Part 1

- - + + + + + + JavaScript Fundamentals – Part 1 + + + + +

JavaScript Fundamentals – Part 1

+ + + + + \ No newline at end of file From 28bb2e6894519423ac410be1d8e20cac154422db Mon Sep 17 00:00:00 2001 From: Madelyn Romero Date: Tue, 29 Apr 2025 17:26:23 -0600 Subject: [PATCH 6/8] Complete Basic Operators practice --- 01-Fundamentals-Part-1/starter/assignments.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/01-Fundamentals-Part-1/starter/assignments.js b/01-Fundamentals-Part-1/starter/assignments.js index 1a1f871fa4..4a2a979078 100644 --- a/01-Fundamentals-Part-1/starter/assignments.js +++ b/01-Fundamentals-Part-1/starter/assignments.js @@ -31,3 +31,21 @@ let population = 340.1; const isIsland = false; const language = "English"; // isIsland = true; + + +// Basic Operators + +const halfPopulation = population / 2; +console.log(halfPopulation); + +population += 1; +console.log(population); + +const populationFinland = 6; +console.log(population > populationFinland); + +const averagePopulation = 33; +console.log(population < averagePopulation); + +const description = country + " is in " + continent + ", and its " + population + " million people speak " + language +console.log(description); From 2215d15e8e48bdc2bbfef05d5e4791cf6ac1fa68 Mon Sep 17 00:00:00 2001 From: Madelyn Romero Date: Tue, 29 Apr 2025 18:16:52 -0600 Subject: [PATCH 7/8] Complete coding challenge 1 --- .../starter/codingChallenges.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 01-Fundamentals-Part-1/starter/codingChallenges.js diff --git a/01-Fundamentals-Part-1/starter/codingChallenges.js b/01-Fundamentals-Part-1/starter/codingChallenges.js new file mode 100644 index 0000000000..eb0b246c88 --- /dev/null +++ b/01-Fundamentals-Part-1/starter/codingChallenges.js @@ -0,0 +1,15 @@ +// JavaScript Fundamentals Part 1 + +// Coding Challenge #1 +const weightMark = 78; +const heightMark = 1.69; + +const weightJohn = 92; +const heightJohn = 1.95; + +const bmiMark = weightMark / heightMark ** 2; +const bmiJohn = weightJohn / (heightJohn * heightJohn); + +const markHigherBMI = bmiMark > bmiJohn; + +console.log(bmiMark, bmiJohn, markHigherBMI); From 8d44f35b3f474d4c4d785defa87193f44e8bf0c6 Mon Sep 17 00:00:00 2001 From: Madelyn Romero Date: Tue, 29 Apr 2025 18:18:54 -0600 Subject: [PATCH 8/8] Add codingChallenge.js to html file --- 01-Fundamentals-Part-1/starter/index.html | 1 + 1 file changed, 1 insertion(+) diff --git a/01-Fundamentals-Part-1/starter/index.html b/01-Fundamentals-Part-1/starter/index.html index 92462e2bda..3160d13c3e 100755 --- a/01-Fundamentals-Part-1/starter/index.html +++ b/01-Fundamentals-Part-1/starter/index.html @@ -30,6 +30,7 @@

JavaScript Fundamentals – Part 1

+ \ No newline at end of file