Answered
How can I make if (!confirm(‘Please confirm!') only affect certain functions in main()?
When using if (!confirm('Please confirm!'),
Only A1(); and A2(); require confirmation.
A3() no need confirm.
Do I need to move A3(); outside of main();?
function main(){
if (!confirm('Please confirm!'))
return;
A1();
A2();
A3();
}
