Perforce Software interview question

Technical: JS. Closures, promises, connect to an API.