I get only [] in console. The function is asynchronous, and the console.log runs before function(content). I understand that, but, I can't resolve it.
async function fja() {
var mydata = [];
await Neutralino.storage.getData('notes', function(content) {
var mydata = content;
})
console.log(mydata);
};