196
rated 0 times
[
197]
[
1]
/ answers: 1 / hits: 92390
/ 7 Years ago, wed, may 10, 2017, 12:00:00
I've a function like this:
function top() {
//promise1
ParentPromise({
...some code here...
}).then(function() {
//promise2
ChildPromise({
..some code here...
}).then(function(response) {
var result = response.result.items;
});
});
};
and i need to return result value in this way:
var myresult = start();
How i can do that? THX
More From » promise