I realize this may sound completely obvious, and the answer being no, but then again I am confused over a specific statement from the Skulpt example located at the bottom of their website
Mostly, the four lines (of 60) that I find confusing are:
var myPromise = Sk.misceval.asyncToPromise(function() {
return Sk.importMainWithBody("<stdin>", false, prog, true);
});
myPromise.then(function(mod) {
console.log('success');
},
function(err) {
console.log(err.toString());
});
What is the point of the return statement within the function? Can it even be accessed? I suppose they could point to the function afterwards, within the method, but why not just pass it as a parameter?