LAB: Promises

In this lab, you will be exploring asynchronous Javascript using async/await

Getting Started

Fork the Online REPL for this assignment. Complete your work in the online editor

Requirements

Write an asynchronous function and call it with async/await

Fetch remote data using async/await

When invoked, this function should use superagent to retrieve the city data from the API, which uses a URL formatted as follows:

https://geocode.xyz/city?json=1

Assignment Submission Instructions

Submit a link to your completed REPL