So.. I'm trying to make this mineman clicker game (Like cookie clicker), and I need to know how to read, create, and delete cookies for when the user goes to the website, so their data saves.
code:
var diamondCount = 0
function diamondClick(){
diamondCount += 1;
var diamonds = document.getElementById("diamonds");
diamonds.innerHTML = diamondCount;
}
code:
var diamondCount = 0
function diamondClick(){
diamondCount += 1;
var diamonds = document.getElementById("diamonds");
diamonds.innerHTML = diamondCount;
}
