O método document.getElementById ()
// Save a reference to the element with id 'demo':
const demoElement = document.getElementById('demo');
Douglas Stemple
// Save a reference to the element with id 'demo':
const demoElement = document.getElementById('demo');