Poloniex example JavaScript node.js

Use the code from this GitHub repository: https://github.com/premasagar/poloniex.js?utm_source=recordnotfound.com Implement code like in this example: poloniex.returnTicker(function(err, data) { if (err){ // handle error } console.log(data); }); However, instead of using a callback, we want to change this to instead use a JavaScript Promise. Please refer to our other page that mentions Promises in more detail. The "Then" function of the promise should then write the results of the API call to a text file. If you have any questions on the task, please let us know and we can help answer.