Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 59c2e07

Browse files
authored
Update index.js
1 parent 9178903 commit 59c2e07

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

projects/random-quote-generator/index.js

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,20 @@ const btnEl = document.getElementById("btn");
22
const quoteEl = document.getElementById("quote");
33
const authorEl = document.getElementById("author");
44

5-
const apiURL = "https://api.quotable.io/random";
5+
const apiURL = [
6+
{
7+
content:"Hello brother",
8+
author:"Rabee"
9+
},
10+
{
11+
content:"Do your best",
12+
author:"Leo"
13+
},
14+
{
15+
content:"Help people now",
16+
author:"Joe"
17+
}
18+
]
619

720
async function getQuote() {
821
try {

0 commit comments

Comments
 (0)