Javascript » Create Functions
👉 User Story:
As a developer
Given a list of Giphy IDs
Create a function that will add the GIF to the page using only the ID as argument
Here are some funny Giphy IDs:
njYrp176NQsHS
l0MYGb1LuZ3n7dRnO
NCPcywASJGggw
Ww2z5AGayCwTSRkBMT
Here is the URL structure that you may want to use:
https://media.giphy.com/media/{GIPHY_ID}/giphy.gif
You can try things out directly on this pen:
https://codepen.io/marcopeg/pen/pozVmRX?editors=0010
✅ Proposed Solution:
Don't run this unless you gave a very good effort to solve it yourself!