Abdelrhman khalil aliā¢ 300
@abdelrhmanKh
Posted
Hi Geethesh Nair, Very Good Work keep up my Friend. Just A quick fix.
- There are some times you click on the dice but nothing happens, I recomend using the other URL that you enter the number of the advice on the URL so that it came faster with me
fetch(`https://api.adviceslip.com/advice/${Math.floor(Math.random() * 200)}`)
.then((response) => response.json())
.then((data) => {
advice.innerHTML = `ā${data.slip.advice}ā`;
adviceId.innerText = data.slip.id;
}
);
this is my code you Could use the API Url as I did.
Other than that its Amazing job š„°
0
Geethesh Nairā¢ 100
@geethesh2610
Posted
Hi @abdelrhmanKh, Much appreciate your advice :)
0