Skip to content

Commit

Permalink
API response from NASA gallery
Browse files Browse the repository at this point in the history
  • Loading branch information
PranavBarthwal committed Feb 18, 2024
1 parent 9586b11 commit acd7e30
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,4 +182,19 @@ function displayRover(){
document.querySelector('.land').textContent = land
document.querySelector('.launch').textContent = launch
document.querySelector('.status').textContent = status
}
}






// API CALL 3 : NASA Photo Video Gallery
fetch('https://images-api.nasa.gov/search?q=apollo')
.then((response) => {
return response.json()
}).then((data) => {
console.log(data)

})
.catch((error) => console.error(error))

0 comments on commit acd7e30

Please sign in to comment.