Async Programming Fun

You should implement your program using promises.  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")


Promise Syntax 

Find the shortest path to an exit by navigating the JSON maze. Below is an example of each entry in the JSON mase. Read the JSON Object from this following endpoint

 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.  This maze is special it does not have any loops.


The left URL can be constructed by doing Right URL can be constructed by doing program should only use the promise syntax.  Answer the collab quiz it will ask you to enter the path ids in order of the entrance to the exit.

%d bloggers like this: