There are APIs for just about everything. In this workshop, I'll take you through how to connect to an API using fetch. We'll add a feature to a chat application to toggle a menu full of emojis that are coming from the open-emoji API.
Basic fetch syntax:
fetch(<API endpoint>) .then(response => response.json()) .then(data => console.log(data))
You need to sign up for Treehouse in order to download course files.Sign up