From 4d24178c2c72f3234058048a71600ce71cc1584f Mon Sep 17 00:00:00 2001 From: Ruben Rivera Date: Thu, 8 Oct 2020 16:15:08 -0400 Subject: [PATCH 1/6] prompt 1 --- fundamentals.js | 1 + 1 file changed, 1 insertion(+) diff --git a/fundamentals.js b/fundamentals.js index 61adf3e..a16b77b 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 = ['banana', 'apple', 'grapes'] // #2: Access the last item in the array and assign to a variable called `last`. From ef6aa42ef8d4a0e62feeab51f3b24ae0aebdb284 Mon Sep 17 00:00:00 2001 From: Ruben Rivera Date: Thu, 8 Oct 2020 16:21:02 -0400 Subject: [PATCH 2/6] prompt 2 --- fundamentals.js | 1 + 1 file changed, 1 insertion(+) diff --git a/fundamentals.js b/fundamentals.js index a16b77b..e2e60aa 100644 --- a/fundamentals.js +++ b/fundamentals.js @@ -7,6 +7,7 @@ var foods = ['banana', 'apple', 'grapes'] // #2: Access the last item in the array and assign to a variable called `last`. // Type your solution immediately below this line: +var last = foods[2] From e00bc0f2b0180beb61f068cb0f69f77351c620f2 Mon Sep 17 00:00:00 2001 From: Ruben Rivera Date: Thu, 8 Oct 2020 16:29:18 -0400 Subject: [PATCH 3/6] prompt 4 --- fundamentals.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/fundamentals.js b/fundamentals.js index e2e60aa..8d23cf3 100644 --- a/fundamentals.js +++ b/fundamentals.js @@ -13,11 +13,16 @@ var last = foods[2] // #3: Create an empty array called `favoriteFoods`. // Type your solution immediately below this line: +var favoriteFoods = [] // #4: Create a `for` loop that adds each string in `foods` to `favoriteFoods`. // Type your solution immediately below this line: +for (let i=0; i Date: Thu, 8 Oct 2020 16:37:34 -0400 Subject: [PATCH 4/6] prompt 5 --- fundamentals.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/fundamentals.js b/fundamentals.js index 8d23cf3..5550d95 100644 --- a/fundamentals.js +++ b/fundamentals.js @@ -28,6 +28,12 @@ for (let i=0; i Date: Thu, 8 Oct 2020 16:51:05 -0400 Subject: [PATCH 5/6] prompt 6 --- fundamentals.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fundamentals.js b/fundamentals.js index 5550d95..e9eec16 100644 --- a/fundamentals.js +++ b/fundamentals.js @@ -32,6 +32,7 @@ var instructor = { biography: 'bob', english: 'thomas', history: 'mary' + } @@ -41,3 +42,4 @@ var instructor = { // it (do not change the original object you typed above) and assigning it // a boolean value. // Type your solution immediately below this line: +instructor.hours = 'has-office-hours' From cb728553f035424b61af28f69daf3cacb64a3232 Mon Sep 17 00:00:00 2001 From: Ruben Rivera Date: Thu, 8 Oct 2020 17:02:31 -0400 Subject: [PATCH 6/6] oojs first prompt --- oojs.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/oojs.js b/oojs.js index 4c836c7..0b48055 100644 --- a/oojs.js +++ b/oojs.js @@ -6,6 +6,15 @@ // - an `addSong` method that adds a song (string) to the `songs` array // Type your solution immediately below this line: +class Playlist { + constructor(name, songs){ + this.name = title + this.songs =[] + + } + +} +