I'm calling an algorithm, which has this standard format:
var input = "x";
Algorithmia.client("API")
.algo("algorithm name")
.pipe(input)
.then(function (output) {
console.log(output);
});
It works well, but I can't seem to figure out how to return the output to a global variable.
I'm fairly new to programming and haven't done anything with Promises yet (which from what I understand, this is utilizing), so any help would be much appreciated.