Obtenha espaço de espaço reservado Innerhtml

// Can be done by utilising  the getAttribute() Method.

var placeholder = document.getElementById("demo").getAttribute("placeholder");
console.log(placeholder);

// Ref: https://developer.mozilla.org/en-US/docs/Web/API/Element/getAttribute
ayaan