Hi I have the following code but temp always returns undefined and I have tried passing variables through as parameters but haven't found a solution. How could I get the value of temp to return the correct value. I know that in javascript the order is unimportant however I dont know how to fix that. Thanks
function get_account (id){
  temp = "";
  Account.get(id, function (err, acc) {
    temp = acc.get("Account");
 });
 return temp
}
