I’m stuck with this function (below or on pastebin). Everything that gets displayed on the console is what I expect, however, I can’t work out how to get the function to return the string ‘Series Title’ (I know it’s something to do with the mystery of asynchronous code).
Any ideas of where I’ve gone wrong (or pointers to tutorials/examples to help get my head around this).
Ok - I’ve got things working much better now. For others learning the ins-and-outs of async coding, the project is at https://glitch.com/edit/#!/gp-skill and this code snippet comes from gp_data_helper.js.