Published
Edited
Jan 14, 2019
1 fork
Insert cell
Insert cell
Insert cell

// This is the code which asks dog.ceo for a picture of a dog.
dogPicture = {
return fetch(`https://dog.ceo/api/breeds/image/random`)
.then((data) => {
return data.json();
})
}
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
nasaData = {
return fetch(`https://api.nasa.gov/planetary/apod?api_key=DEMO_KEY&date=${pictureDate}`)
.then(data => {
return data.json();
});
}
Insert cell
Insert cell
// YOUR CODE GOES HERE!!!
html`
<h1>Put your heading here</h1>
<p>Put your paragraph here</p>

<style>
h1 {

}

p {

}
</style>

`
// ==================================
Insert cell
Insert cell
Insert cell
// Get many doge !
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more