Open cmwylie19 opened 1 year ago
Algo Step 1: Call backend to get the number of days since the last pay period Step 2: Query taco api with number of days Step 3: Send Response to backend Step 4: Include obvious logs to say if the transaction was successful
AC: Make this a JavaScript IIFE like:
(()=>{
console.log('etc')
})()
days=15
url=`https://www.heytaco.chat/api/v1/json/leaderboard/T01G7FPRP8V?days=${days}`
fetch(url).then(res => res.json()).then(data => console.log(data,undefined,2))
JavaScript function: