I am working on a game development. However I am unable to add the animate class to the character element. I highly appreciate your help.
var character = document.getElementById("#character");
document.addEventListeners("click",jump);
function jump(){
character.class.add("animate");
setTimeout(removeJump,300);
};
function removeJump(){
character.class.remove("animate");
}