Tue 2020.03.24
It is working as expected as text 'Hello World!' is returned.
As at L20 the string is available in local scope, why not assign it to a global var at that point?
Better: POST not GET
See link in post #4 and:
http://www.espruino.com/Internet
Concept
https://developer.mozilla.org/en-US/docs/Mozilla/js-ctypes/Using_js-ctypes/Declaring_and_Using_Callbacks https://codeburst.io/javascript-what-the-heck-is-a-callback-aba4da2deced https://www.dashingd3js.com/lessons/javascript-callback-functions https://stackoverflow.com/questions/5263785/how-to-use-callback-function-in-java-script-functions
https://developer.mozilla.org/en-US/docs/Mozilla/js-ctypes/Using_js-ctypes/Declaring_and_Using_Callbacks
https://codeburst.io/javascript-what-the-heck-is-a-callback-aba4da2deced
https://www.dashingd3js.com/lessons/javascript-callback-functions
https://stackoverflow.com/questions/5263785/how-to-use-callback-function-in-java-script-functions
@Robin started
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.
Tue 2020.03.24
It is working as expected as text 'Hello World!' is returned.
As at L20 the string is available in local scope, why not assign it to a global var at that point?
Better:
POST not GET
See link in post #4 and:
Concept