From 06144bf7239297544d8624c7eac6194d62e75a09 Mon Sep 17 00:00:00 2001 From: Guadalupe Stephens Date: Thu, 8 Oct 2020 16:06:51 -0400 Subject: [PATCH 1/4] completed prmpt 1 --- fundamentals.js | 1 + 1 file changed, 1 insertion(+) diff --git a/fundamentals.js b/fundamentals.js index 61adf3e..c292b06 100644 --- a/fundamentals.js +++ b/fundamentals.js @@ -2,6 +2,7 @@ // #1: Create an array of strings called `foods` that contains three foods. // Type your solution immediately below this line: +var foods = ['apple','mole','quesadillas'] // #2: Access the last item in the array and assign to a variable called `last`. From 082cff99ec7aef1a9ad322c5520c63472e22b6ec Mon Sep 17 00:00:00 2001 From: Guadalupe Stephens Date: Thu, 8 Oct 2020 16:15:16 -0400 Subject: [PATCH 2/4] completed promt 2 --- fundamentals.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fundamentals.js b/fundamentals.js index c292b06..5e40163 100644 --- a/fundamentals.js +++ b/fundamentals.js @@ -7,7 +7,8 @@ var foods = ['apple','mole','quesadillas'] // #2: Access the last item in the array and assign to a variable called `last`. // Type your solution immediately below this line: - +foods[2]; +var last = foods[2]; // #3: Create an empty array called `favoriteFoods`. From cb9818dd357a0f0c4e09435698eb3f291f414e64 Mon Sep 17 00:00:00 2001 From: Guadalupe Stephens Date: Thu, 8 Oct 2020 16:19:36 -0400 Subject: [PATCH 3/4] prompt 3 completed --- fundamentals.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fundamentals.js b/fundamentals.js index 5e40163..c5bb5e7 100644 --- a/fundamentals.js +++ b/fundamentals.js @@ -13,7 +13,7 @@ var last = foods[2]; // #3: Create an empty array called `favoriteFoods`. // Type your solution immediately below this line: - +favoriteFoods = []; // #4: Create a `for` loop that adds each string in `foods` to `favoriteFoods`. From 2a45ccf27127c914b85e4c0e5b8a16dceec0f2b4 Mon Sep 17 00:00:00 2001 From: Guadalupe Stephens Date: Thu, 8 Oct 2020 16:44:13 -0400 Subject: [PATCH 4/4] prompt 5 completed --- fundamentals.js | 4 +++- oojs.js | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/fundamentals.js b/fundamentals.js index c5bb5e7..8246a19 100644 --- a/fundamentals.js +++ b/fundamentals.js @@ -18,11 +18,13 @@ favoriteFoods = []; // #4: Create a `for` loop that adds each string in `foods` to `favoriteFoods`. // Type your solution immediately below this line: - +var i = foods; +for (i= (favoriteFoods), // #5: Create an object literal called `instructor` that contains three key-value pairs. // Type your solution immediately below this line: +var instructor = {name: guap, age:27, loves:food}; diff --git a/oojs.js b/oojs.js index 4c836c7..41df87d 100644 --- a/oojs.js +++ b/oojs.js @@ -5,7 +5,7 @@ // - a `songs` property that is an empty array not determined by input (not passed into the constructor) // - an `addSong` method that adds a song (string) to the `songs` array // Type your solution immediately below this line: - +var Playlist = title, songs, addSong