I have two functions which look like this:
function functionOne(par1, par2, par3) {
// this functions patches using an api, re-usable
}
function functionTwo(par2) {
functionOne(par1, par2, par3);
functionOne(par1, par2, par3);
functionOne(par1, par2, par3);
functionOne(par1, par2, par3);
}
This works as intended, but I want to give the user some feedback if he presses the button and functionTwo runs successfully or gives an error.
I found this: https://www.w3schools.com/howto/howto_js_snackbar.asp which is what I want, rather than a pop-up, but is it possible to display this after success or error and if so, how? Thanks!