JS Obtenha conteúdo HTML

document.getElementById("content").innerHTML = "Upvote!";
Undefined