i made a request to an api it returns an object it has property holding a string i stored the string in a variable named lyrics now if i console log the variable inside the async await function it gives the string but if i console.log the variable outside of async/ await it returns an empty string which is the value of the variable before i assigned the value of the property to it from the object
let lyrics='';
async function displayLyrics2(url){
const request = await fetch(url);
const response= await request.json();
console.log(response)
lyrics+= response.result.lyrics;
console.log(lyrics);
}
displayLyrics2()
console.log(lyrics)