@Gordon ah that makes more sense. Still getting my head around the promises and returns. Clearly wasn't thinking about the http request as it's own function that can be returned in the same line.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
@Gordon ah that makes more sense. Still getting my head around the promises and returns. Clearly wasn't thinking about the http request as it's own function that can be returned in the same line.
Thanks for the help :)