From 67bd5227cf5e2b1b459ca69bf6f49480e2d3b74e Mon Sep 17 00:00:00 2001 From: BUNNY_SCHAEFER Date: Thu, 8 Oct 2020 13:06:48 -0700 Subject: [PATCH 1/6] prompt 1 --- fundamentals.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fundamentals.js b/fundamentals.js index 61adf3e..230e74a 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 = ["apple", "banana", "blackberry"] // #2: Access the last item in the array and assign to a variable called `last`. // Type your solution immediately below this line: From 8faea495ba25283a242efb1dba514580410537de Mon Sep 17 00:00:00 2001 From: BUNNY_SCHAEFER Date: Thu, 8 Oct 2020 13:08:34 -0700 Subject: [PATCH 2/6] prompt 2 & 3 --- fundamentals.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fundamentals.js b/fundamentals.js index 230e74a..ec287db 100644 --- a/fundamentals.js +++ b/fundamentals.js @@ -6,12 +6,12 @@ var foods = ["apple", "banana", "blackberry"] // #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] // #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 86cc09c04759bab81f5d64d84c08341aa28bf8b0 Mon Sep 17 00:00:00 2001 From: BUNNY_SCHAEFER Date: Thu, 8 Oct 2020 13:23:22 -0700 Subject: [PATCH 3/6] prompt 4 --- fundamentals.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fundamentals.js b/fundamentals.js index ec287db..f7f6fc3 100644 --- a/fundamentals.js +++ b/fundamentals.js @@ -16,7 +16,8 @@ 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 13:25:11 -0700 Subject: [PATCH 4/6] prompt 5 --- fundamentals.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/fundamentals.js b/fundamentals.js index f7f6fc3..2e7c90d 100644 --- a/fundamentals.js +++ b/fundamentals.js @@ -22,7 +22,11 @@ for (let i=0; i Date: Thu, 8 Oct 2020 13:38:53 -0700 Subject: [PATCH 5/6] last one --- fundamentals.js | 1 + 1 file changed, 1 insertion(+) diff --git a/fundamentals.js b/fundamentals.js index 2e7c90d..9354ff9 100644 --- a/fundamentals.js +++ b/fundamentals.js @@ -33,3 +33,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 2b5faf34bb1dad20646e6dd03cf9e3015a206eea Mon Sep 17 00:00:00 2001 From: BUNNY_SCHAEFER Date: Thu, 8 Oct 2020 13:46:02 -0700 Subject: [PATCH 6/6] I have no idea how to even begin. I don't even remember what classes look like --- oojs.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/oojs.js b/oojs.js index 4c836c7..a34a650 100644 --- a/oojs.js +++ b/oojs.js @@ -5,7 +5,11 @@ // - 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: - +new class playlist + constructor(title, songs) + title: "don't know what I'm doing" + songs:[] + addSong(song) @@ -13,7 +17,10 @@ // #2: Create an instance of the Playlist class and set it to a variable called `myPlaylist` // Call the instance's `addSong` method to add a song to the instance's `songs` array // Type your solution immediately below this line: - +new myPlaylist + constructor(title, songs) + title: "classes are dumb" + addSong("IDK")