Skip to content

Commit

Permalink
Update scripts.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaliya7516 authored Aug 3, 2024
1 parent c3f27b9 commit 488170e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
fetch('https://api.jsonbin.io/b/5e3f0514f47af813bad11ac5')
fetch('https://api.jsonbin.io/b/5e3f0514f47af813bad11ac5') // the API is missing, need to take out time to get some good API like this one :(
.then(res => res.json())
.then(res=> { data = res["questions"]}) //gives array of 20 questions

Expand Down Expand Up @@ -68,4 +68,4 @@ function getResult(){
document.getElementById("result").innerHTML = `Congratulations!!!<br>Your Final score is: ${score}`;
}

}
}

0 comments on commit 488170e

Please sign in to comment.