Simple javascript (nodejs) fix

Job ID: 31760109

Budget: $10 – $30 USD

1. We have javascript that get the token price from coinGecko (see attached file test.js)
2. I need to call the value of price from file 1 (test.js) in the second file where the rest of the application logic occured .
something like:
var read = require("../util/test");
const Price = read.getPrice.then(function(getExchangePrice) {
console.log("res=" +getExchangePrice);

});
const medoozaValueForUSD = [Price from file1];
The rest of the application then used the "medoozaValueForUSD"
see attached file2
Related categories: JavaScript Node.js AngularJS