-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathavengers.js
More file actions
31 lines (30 loc) · 850 Bytes
/
avengers.js
File metadata and controls
31 lines (30 loc) · 850 Bytes
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
const avengers = [
{
name: 'Homem de ferro',
id: 1009368,
picture: 'http://i.annihil.us/u/prod/marvel/i/mg/9/c0/527bb7b37ff55.jpg'
}, {
name: 'Capitão America',
id: 0,
picture: 'http://i.annihil.us/u/prod/marvel/i/mg/3/50/537ba56d31087.jpg'
}, {
name: 'Hulk',
id: 0,
picture: 'http://i.annihil.us/u/prod/marvel/i/mg/5/a0/538615ca33ab0.jpg'
}, {
name: 'Thor',
id: 0,
picture: 'http://i.annihil.us/u/prod/marvel/i/mg/d/d0/5269657a74350.jpg'
}, {
name: 'Viúva Negra',
id: 0,
picture: 'http://i.annihil.us/u/prod/marvel/i/mg/f/30/50fecad1f395b.jpg'
}, {
name: 'Gavião Arqueiro',
id: 0,
picture: 'http://i.annihil.us/u/prod/marvel/i/mg/e/90/50fecaf4f101b.jpg'
}
]
exports.getAvenger = function () {
return avengers[Math.floor(Math.random() * avengers.length)];
}