From c20f575bc0ac9647fb21dc55e703a1ac50c55ee5 Mon Sep 17 00:00:00 2001 From: zb45659 Date: Thu, 8 Oct 2020 08:30:12 -0500 Subject: [PATCH 1/3] fundamentals --- fundamentals.js | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/fundamentals.js b/fundamentals.js index 61adf3e..3363afa 100644 --- a/fundamentals.js +++ b/fundamentals.js @@ -2,29 +2,43 @@ // #1: Create an array of strings called `foods` that contains three foods. // Type your solution immediately below this line: - +var foods = ["steak","cheese","pizza"]; // #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`. // Type your solution immediately below this line: - +for ( i=0; i Date: Thu, 8 Oct 2020 08:59:07 -0500 Subject: [PATCH 2/3] oojs --- fundamentals.js | 10 +++------- oojs.js | 12 +++++++++++- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/fundamentals.js b/fundamentals.js index 3363afa..a156287 100644 --- a/fundamentals.js +++ b/fundamentals.js @@ -17,7 +17,7 @@ var favoriteFoods = []; // #4: Create a `for` loop that adds each string in `foods` to `favoriteFoods`. // Type your solution immediately below this line: for ( i=0; i Date: Thu, 8 Oct 2020 09:00:33 -0500 Subject: [PATCH 3/3] fixed mistakes --- fundamentals.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fundamentals.js b/fundamentals.js index a156287..bb31593 100644 --- a/fundamentals.js +++ b/fundamentals.js @@ -35,6 +35,6 @@ var instructor = { // a boolean value. // Type your solution immediately below this line: -instructor.has-office-hours = "true"; +instructor["has-office-hours"] = true;