-
Notifications
You must be signed in to change notification settings - Fork 210
/
Copy pathmain.js
23 lines (19 loc) · 887 Bytes
/
main.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/** @TODO - Access the pokemon data from data.js */
/** and print to the console to check */
/** @TODO - Update the page data using a single pokemon */
/**
* 1. Update the #poke_name heading with the name and dex number
* 2. Update the #poke_img with the pokemon's image URL
* 3. Update the type heading with the pokemon's type(s)
* 4. Change the width of each stat bar using the
* pokemon's base stats
*/
/** @TODO - Assign #random_btn to pick a random starter on click */
/** and update the page data accordingly
*
* 1. Make a new function for the code from the previous task
* 2. Generate a random index for the pokemon array
* 3. Replace references to the specific pokemon with references
* to the randomly-chosen pokemon
* 4. Add an eventListener to #random_btn with our new function!
*/