I am wondering why the number did not increase with the subsequent click, the purpose of the click was to increment the number by 1 after each click. The function seems to be working. Thank you for the advise in advance!
pOne.addEventListener(“click”, function(e){
console.log(addPoint());
})
function addPoint(){
let score = 0
score = score + 1
return score
}