Open elischutze opened 7 years ago
I'll give this a go 👍
Should the data be stored in an object in a .js file for now instead of a .json file? If we use a json object we'd have to set up a server to make xhr requests to (not sure which language this would be in and how comfortable beginners would be with that).
With a js file, the sample data could be accessed in this way:
<script type="text/javascript" src="./sampleData.js"></script>
<script type="text/javascript">
// 'sample' is the object defined in sampleData.js
sample.data.forEach(video => {
console.log(video.title)
})
</script>
@tas12 either works for now !
Create a json file that holds some data about videos (with a link!) so that the page can come together for now.