- uses older style of class creation proto chain
- Code looks to only be made to only run in the browser - given XMLHttpRequest and alert are browser only modules
- No tests so likely some that will need implementing before begin any refactoring
- missing
GetBookListApiClientin BookSearchApiClient. I don't believe that this code will actually fun given the method is missing - api.book-seller-example.com is not a real api so will have to mock/stub this out to ensure the code is runable
- getBooksByAuthor method doesn't actually return anything? A callback function or promisifiy the method would allow it to work
- Unsure the requirement for asking XML vs json during the request. From a usage perspective it does not look like it alters the return result. suggestion would be to align to just one format
- Attempt to get the code running (after checking for any bad actor code)
- Write some basic tests to ensure input outs are stable
- Refactor to use more modern tooling and synatx - ensuring tests pass after each major step