Skip to content

Commit 936b227

Browse files
committed
Got to HOF ga-wdi-exercises#1 and got stuck :(
1 parent 193c903 commit 936b227

File tree

354 files changed

+75102
-22
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

354 files changed

+75102
-22
lines changed

fundamentals.js

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,35 @@
22

33
// #1: Create an array of strings called `foods` that contains three foods.
44
// Type your solution immediately below this line:
5-
5+
var foods = ['pizza', 'tacos', 'wings']
66

77

88
// #2: Access the last item in the array and assign to a variable called `last`.
99
// Type your solution immediately below this line:
10-
11-
10+
var last = foods[2]
1211

1312
// #3: Create an empty array called `favoriteFoods`.
1413
// Type your solution immediately below this line:
15-
14+
var favoriteFoods = []
1615

1716

1817
// #4: Create a `for` loop that adds each string in `foods` to `favoriteFoods`.
1918
// Type your solution immediately below this line:
20-
21-
19+
for (var i = 0; i < foods.length; i++) {
20+
favoriteFoods[i] = foods[i]
21+
}
2222

2323
// #5: Create an object literal called `instructor` that contains three key-value pairs.
2424
// Type your solution immediately below this line:
25-
25+
var instructor = {
26+
teacher1: 'jimmy',
27+
teacher2: 'zakk',
28+
teacher3: 'hammad'
29+
}
2630

2731

2832
// #6: Add a `has-office-hours` (spelled exactly) property to `instructor` by accessing
2933
// it (do not change the original object you typed above) and assigning it
3034
// a boolean value.
3135
// Type your solution immediately below this line:
36+
instructor['has-office-hours'] = true

hof.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ var people = [
2020
// person in the `people` array. Assign the returned array to a variable
2121
// called `peopleNames`.
2222
// Type your solution immediately below this line:
23-
23+
var peopleNames = people.map
2424

2525

2626
// #2: Use the `filter` array method to create a new, filtered array containing only

node_modules/.bin/_mocha

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/.bin/mkdirp

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/.bin/mocha

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/assertion-error/.npmignore

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/assertion-error/History.md

Lines changed: 19 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/assertion-error/README.md

Lines changed: 41 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/assertion-error/index.js

Lines changed: 116 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/assertion-error/package.json

Lines changed: 61 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/balanced-match/.npmignore

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/balanced-match/LICENSE.md

Lines changed: 21 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)