Javascript How To Store Fetched Data From Api To Global Variable

Javascript How To Store Fetched Data From Api To Global Variable