You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
544 B

## Olympic
### Instructions
The Olympic games just ended and you want to tell everyone about the ranking of
your favorite athlete: Pedro.
3 years ago
Look for the position of Pedro inside the array `athletes`.
For the first to the third position, log the matching medal emoji 🥇🥈🥉.
3 years ago
Otherwise log this disapointed emoji: 😞 and a message of his exact ranking.
Example, if pedro is in 10th place, the message to log would be:
```js
'😞 Pedro is #10'
```
### Notions
- [indexOf](https://devdocs.io/javascript/global_objects/array/indexof)