function rc(){
console.log('bond');
}
function tc(){
console.log('shapiro');
}
function mp(){
return Promise.resolve(function(){
console.log('shalom');
rc();
});
}
var x = mp();
mp().then(function(f){
f();
tc();
})
console.log('james');
function rc(){
console.log('bond');
}
function tc(){
console.log('shapiro');
}
function mp(){
return Promise.resolve(function(){
console.log('shalom');
rc();
});
}
var x = mp();
mp().then(function(f){
f();
tc();
})
console.log('james');
* השאלה נוספה בתאריך: 31-07-2019