I do have an asynchron function. In this function I need to have the value of an variable, which is defined outside the function. How is it possible to access the variable inside the asynchron function. Thanks for your help.
var valueTest = "Hello";
doUpdate(source)
.then(myValue => {
// do something with MyValue is working
// How can I use the valueTest variable at this position?
// I need it in the function doUpdateTest
doUpdateTest(valueTest, myValue);
})