async function getStockSymbol(name) {
console.log(await 111);
console.log(await 111);
console.log(await 111);
console.log(await 111);
console.log(await 111);
return "111" + name;
}
async function getStockPrice(symbol) {
console.log(await 222);
console.log(await 222);
console.log(await 222);
console.log(await 222);
console.log(await 222);
return "222" + symbol;
}
async function getStockPriceByName(name) {
const symbol = await getStockSymbol(name);
const stockPrice = await getStockPrice(symbol);
return stockPrice;
}
function bb() {
getStockPriceByName('goog').then(console.log);
console.log(3333);
}
bb();