JS Fetch

Fetch is a useful skill to learn in JavaScript. Until this point, we had learned the only way to retrieve data would involve refreshing the page. This format of code allows the site to pull information immediately from simple text files and format them in an understandable manner. It’s more than text files though, as one could re-code some of it to connect to a database or an external source. (Note: HTML demo is currently unavailable on account of missing text sheets.)

JS Random Card Generator

Let’s create four cards to randomly display the songs from the list selected.

This script will make sure no records will be showning than once.



Four of the Best Songs in the World : )



Leave a Reply

Your email address will not be published. Required fields are marked *