I want to put the values I got by hitting the API in the array and take them out at any time.
Some source codes are omitted, but
console.log(a) will look like the following, and I think I can get it with index:0 but I can't.
I don't think I can get it.
When you run
Isn't it just that the callback has not been called and the value has not been set yet?
© 2023 OneMinuteCode. All rights reserved.