I'm working on two functions about my project. First function is async function:
async function abc(params) {
(...)
var sdata = JSON.stringify(params);
fetch(...)
.then(response => response.json())
.then(data => {
/*do something*/
})
.catch(err => {
/*err do something*/
})
}
Second function is:
function xyz (param){
irrevelantFunction(param);
}
I tried to execute this two functions like below:
abc(params).then(xyz(param));
but it doesn't work. How can I solve this problem? Many thanks for your precious support.