I have a script that will get a JSON from an API in a.js, and the response is used in b.js. For simplicity\'s sake, I\'ll show the API code as:
a.js
b.js