// Eloquent JavaScript

// Run this file in your terminal using `node my_solution.js`. Make sure it works before moving on!

// Program Structure
// Write your own variable and do something to it.




// Complete one of the exercises: Looping a Triangle, FizzBuzz, or Chess Board



// Functions

// Complete the `minimum` exercise.



// Data Structures: Objects and Arrays
// Create an object called "me" that stores your name, age, 3 favorite foods, and a quirk below.
@@ -195,277 +195,1170 @@
 t.%0A%0A
-%0A%0A%0A// Complete one of the exercises: Looping a Triangle, FizzBuzz, or Chess Board%0A%0A%0A%0A// Functions%0A%0A// Complete the %60minimum%60 exercise.%0A%0A%0A%0A// Data Structures: Objects and Arrays%0A// Create an object called %22me%22 that stores your name, age, 3 favorite foods, and a quirk below.
+var myVar = 100;%0Aconsole.log(myVar);%0A%0A%0A// Chapter 2 question mini-exercise:%0A// commented because it cant run in node.%0A// var food = prompt(%22What is your favorite food?%22);%0A// if (food)%0A//   alert(%22Hey! That's my favorite too!%22);%0A%0A%0A%0A// Complete one of the exercises: Looping a Triangle, FizzBuzz, or Chess Board%0Avar fizzBuzz = function() %7B%0A  for (var i = 1; i %3C= 100; i++) %7B%0A    if ((i %25 3 == 0) && (i %25 5 == 0))%0A      console.log(%22FizzBuzz%22);%0A    else if (i%255 == 0)%0A      console.log(%22Buzz%22);%0A    else if (i%253 == 0)%0A      console.log(%22Fizz%22);%0A    else%0A      console.log(i)%0A  %7D%0A%7D;%0A%0AfizzBuzz();%0A%0Avar looper = function() %7B%0A  output = %22#%22;%0A  for (var i = 1; i %3C= 7; i++) %7B%0A    console.log(output);%0A    output += '#'%0A  %7D;%0A%7D;%0A%0Alooper()%0A%0A%0A%0A%0A%0A%0A// Functions%0A%0A// Complete the %60minimum%60 exercise.%0Afunction min(a, b) %7B%0A  if (a %3C= b)%0A    return a%0A  else%0A    return b%0A%7D;%0A%0Aconsole.log(min(0, -10));%0A%0A%0A// Data Structures: Objects and Arrays%0A// Create an object called %22me%22 that stores your name, age, 3 favorite foods, and a quirk below.%0Avar me = %7B%0A  name: %22Marshall%22,%0A  age: 29,%0A  favoriteFoods: %5B%22Salmon%22, %22Broccoli%22, %22Lentils%22%5D,%0A  quirk: %22I'm not kidding about loving broccoli%22,%0A%7D

complete 7.2 eloquent exercises