-
Notifications
You must be signed in to change notification settings - Fork 176
/
index.js
121 lines (102 loc) · 1.98 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
// const dogs = require('./dogData');
let dogs = [
{
"name": "Doggo-co-WOOF",
"age": 3,
"species": "dog",
"weight": 45,
"votes": 22
}, {
"name": "Space CATdet",
"age": 4,
"species": "cat",
"weight": 20,
"votes": 5
}, {
"name": "Solar Squirrel",
"age": 1,
"species": "squirrel",
"weight": 0.5,
"votes": 13
}, {
"name": "Bark Hole",
"age": 20,
"species": "dog",
"weight": 19,
"votes": 20
}, {
"name": "Howlling Winds",
"age": 55,
"species": "dog",
"weight": 90,
"votes": 200
}, {
"name": "Electron Nutria",
"age": 7,
"species": "nutria",
"weight": 3,
"votes": 0
}, {
"name": "Howlling Winds Sr.",
"age": 59,
"species": "dog",
"weight": 101,
"votes": 201
}, {
"name": "Tycho Brahe",
"age": 35,
"species": "moose",
"weight": 500,
"votes": 123
}, {
"name": "Johannes Kepler",
"age": 9,
"species": "dog",
"weight": 5,
"votes": 55
}, {
"name": "Pluto",
"age": 89,
"species": "dog",
"weight": 10,
"votes": 190
}, {
"name": "Quark",
"age": 20,
"species": "dog",
"weight": 1,
"votes": 45
}, {
"name": "Higgs",
"age": 26,
"species": "dog",
"weight": 0.00001,
"votes": 200
}, {
"name": "Lepton",
"age": 12,
"species": "dog",
"weight": 15,
"votes": 175
}, {
"name": "Boson",
"age": 9,
"species": "dog",
"weight": 8,
"votes": 141
}
]
// 1.
var greeting;
// 2.
var contestants;
// 3.
var filterSpecies;
// 4.
var dogContestants;
// 5.
var dogsWithClasses;
// 6.
var firstInClass;
// 7.
var votes;