Calling a function with params onclick
I'm trying to call a function with a param. As i have it now the function gets called on load, how can i make it wait for the user to click and still have my param?
deletePostBtn.addEventListener("click", deletePost(baseURL))