Generate a button that you can press to get points.
let button = document.createElement("button"); button.innerHTML = "Add ten points"; button.onclick = function() { // add 10 points to the score score += 10; // update the score div score_div.innerHTML = score; };