const getPokemon = async () => {
try {
startLoadingAnimation();
const res = await fetch(`https://pokeapi.co/api/v2/pokemon/1/`);
const data = await res.json();
return data.name;
} catch (err) {
return `Error while fetching pokemon name : ${err}`;
} finally {
stopLoadingAnimation();
}
}