From 0ae18c1cdd289a8ec19865a6b5856d2be0547282 Mon Sep 17 00:00:00 2001 From: Samantha Denis Date: Thu, 8 Oct 2020 16:06:48 -0400 Subject: [PATCH 1/7] Prompt 1 --- fundamentals.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fundamentals.js b/fundamentals.js index 61adf3e..0ca709a 100644 --- a/fundamentals.js +++ b/fundamentals.js @@ -2,7 +2,7 @@ // #1: Create an array of strings called `foods` that contains three foods. // Type your solution immediately below this line: - +var foods =["Pizza", "Chicken", "Cake"] // #2: Access the last item in the array and assign to a variable called `last`. // Type your solution immediately below this line: From e0b463baf36964e2c314583e9a0e02b6417c2d4d Mon Sep 17 00:00:00 2001 From: Samantha Denis Date: Thu, 8 Oct 2020 16:10:27 -0400 Subject: [PATCH 2/7] Prompt 2 --- fundamentals.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fundamentals.js b/fundamentals.js index 0ca709a..385c115 100644 --- a/fundamentals.js +++ b/fundamentals.js @@ -6,7 +6,7 @@ var foods =["Pizza", "Chicken", "Cake"] // #2: Access the last item in the array and assign to a variable called `last`. // Type your solution immediately below this line: - +var last = "Cake" // #3: Create an empty array called `favoriteFoods`. From 38f848cff24b60aff3e9bf1b0f9a187b1bdd68e9 Mon Sep 17 00:00:00 2001 From: Samantha Denis Date: Thu, 8 Oct 2020 16:14:47 -0400 Subject: [PATCH 3/7] Prompt 3 --- fundamentals.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fundamentals.js b/fundamentals.js index 385c115..5aaad48 100644 --- a/fundamentals.js +++ b/fundamentals.js @@ -11,7 +11,7 @@ var last = "Cake" // #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`. From caf5a091d8f0dd071eacc82e079614f2369a3f9d Mon Sep 17 00:00:00 2001 From: Samantha Denis Date: Thu, 8 Oct 2020 16:30:31 -0400 Subject: [PATCH 4/7] Prompt 4 --- fundamentals.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/fundamentals.js b/fundamentals.js index 5aaad48..0bc0531 100644 --- a/fundamentals.js +++ b/fundamentals.js @@ -16,7 +16,11 @@ var favoriteFoods=[] // #4: Create a `for` loop that adds each string in `foods` to `favoriteFoods`. // Type your solution immediately below this line: - +var favoriteFoods = [] +var foods =["Pizza", "Chicken", "Cake"] +for(i=0; i Date: Thu, 8 Oct 2020 16:33:45 -0400 Subject: [PATCH 5/7] Prompt 5 --- fundamentals.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/fundamentals.js b/fundamentals.js index 0bc0531..9a9b1a8 100644 --- a/fundamentals.js +++ b/fundamentals.js @@ -19,12 +19,16 @@ var favoriteFoods=[] var favoriteFoods = [] var foods =["Pizza", "Chicken", "Cake"] for(i=0; i Date: Thu, 8 Oct 2020 16:42:22 -0400 Subject: [PATCH 6/7] Prompt 6 --- fundamentals.js | 1 + 1 file changed, 1 insertion(+) diff --git a/fundamentals.js b/fundamentals.js index 9a9b1a8..10cfa0c 100644 --- a/fundamentals.js +++ b/fundamentals.js @@ -36,3 +36,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['has-office-hours']= true \ No newline at end of file From 331334147cfe8c04afc2b51bd2a94696f49bf488 Mon Sep 17 00:00:00 2001 From: Samantha Denis Date: Thu, 8 Oct 2020 17:01:25 -0400 Subject: [PATCH 7/7] OOJS 1 --- oojs.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/oojs.js b/oojs.js index 4c836c7..9c5ac74 100644 --- a/oojs.js +++ b/oojs.js @@ -5,8 +5,12 @@ // - 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: - - +class Playlist { + constructor(title){ + this.title="input"; + this.song=[addSong]; + } +}