MCPcopy Create free account
hub / github.com/codemistic/Web-Development / getQuotes

Function getQuotes

Quote-generator/script.js:50–62  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

48}
49
50async function getQuotes(){
51 loading();
52 const apiUrl = 'https://type.fit/api/quotes';
53 try{
54 const response = await fetch(apiUrl);
55 apiQuotes = await response.json();
56 // console.log(apiQuotes)
57 newQuote();
58 } catch (error) {
59 // alert(error)
60 // Catch Error Here
61 }
62}
63
64// Tweet Quote
65function tweetQuote() {

Callers 1

script.jsFile · 0.85

Calls 2

loadingFunction · 0.85
newQuoteFunction · 0.85

Tested by

no test coverage detected