if a fuction that returns promise is called and returned in next line will execution of the called function stop?

Viewed 21

if we dont use async await then will the execution of callToFunction() stops when return is called? Or is it that we need to use async await to execute the function properly? which is the suggested way?

{
    callToFunction(); //This function returns a promise
    return;
} ```

0 Answers
Related