If I have async function and I extract some data in it and want to use them out of async function what should I do ?! Imagine:
Async function Hello(A,B,C){
....
}
in them middle of my program(in then another function).I use async function and call it to extract something then I want to save what I extract to use them in another function.
function blabla(){
Hello(A,B,C).then_ =>{
...
...
Array.push(what i extract in async function)//For store what I extract.
}
}
I write this code in Async function : Array.push(what i extract in async function) but in out of this async function didn't work ! why like this ? in Async function how we can use what we extract?