I know this is a duplicate topic, but this topic is different because i use very simple examples. I have a JavaScript function like this:
(function myfunction($){
function a(){
alert("A section");
}
function b(){
alert("B section")
}
})();
I want to create a HTML button which calls function A, and function B. How can i do that?