Skip to content

Commit

Permalink
Update app.js
Browse files Browse the repository at this point in the history
  • Loading branch information
parthpandyappp authored Jan 18, 2021
1 parent cadf0d7 commit 98b7c5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import info from './secret.js'
import API_KEY from './secret.js'
const body = document.querySelector('body')
const button = document.querySelector('.button')
const word = document.createElement('h1')
Expand All @@ -22,7 +22,7 @@ const randomword = () => {

const randomDefinition = (word) => {
// console.log(word.textContent)
fetch('https://dictionaryapi.com/api/v3/references/collegiate/json/'+(word.textContent)+"?key="+(info.API_KEY))
fetch('https://dictionaryapi.com/api/v3/references/collegiate/json/'+(word.textContent)+"?key="+(API_KEY))
.then(response => {
return response.json();
})
Expand Down

0 comments on commit 98b7c5f

Please sign in to comment.