diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000000..a0f0e53867 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.vscode +.DS_Store diff --git a/01-Fundamentals-Part-1/starter/assignments.js b/01-Fundamentals-Part-1/starter/assignments.js new file mode 100644 index 0000000000..4a2a979078 --- /dev/null +++ b/01-Fundamentals-Part-1/starter/assignments.js @@ -0,0 +1,51 @@ +// 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); + + +// Data Types + +// let isIsland = false; +// let 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; + + +// 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); 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); diff --git a/01-Fundamentals-Part-1/starter/index.html b/01-Fundamentals-Part-1/starter/index.html index 59529c7923..3160d13c3e 100755 --- a/01-Fundamentals-Part-1/starter/index.html +++ b/01-Fundamentals-Part-1/starter/index.html @@ -1,29 +1,36 @@ -
- - - -