I need to pass a function argument into another function, how would you achieve that? ex:
function one(nextFunction) {
nextFunction()
}
function listener(myFunction) {
document.getElementById("button").addEventListener("click", one(myFunction);
}
listener(theFunction);
function theFunction() {
alert("hello");
}