Async HW Instructions
You should implement your program using promises. (Don't use the async and await keywords). We will randomly select inspect programs to ensure that you used the promise syntax.
Use the isomorphic fetch library. Remember to do a npm install.
const fetch = require("isomorphic-fetch")
Find the shortest path to an exit by navigating the JSON maze. Below is an example of each entry in the JSON maze. Read the JSON Object from this following endpoint https://www.cs.virginia.edu/~dgg6b/jsonMaze/enter.json
The navigate through the maze until you find an exit. (An exit is a JSON object where the "exit" property is set to true). Return the list of path ids that correspond to the shortest path through the maze. It is important to note that, the maze does not have any loops.
The left URL can be constructed by doing https://www.cs.virginia.edu/~dgg6b/jsonMaze/
The Right URL can be constructed by doing https://www.cs.virginia.edu/~dgg6b/jsonMaze/
Your program should only use the promise syntax.
To get credit for the assignment, answer the Collab quiz. It will ask you to enter the path IDs in order, from the entrance to the exit.