Here is my js code for the Button. However I'm not getting the alert on click please advise
window.onload = init;
function init() {
var button = document.getElementById("addButton");
button.onclick = handleButtonClick;
}
function handleButtonClick(){
alert("Button was clicked!");
}











