<div id="target"><span>あいうえお</span></div>
let element = document.getElementById('target');
console.log(element)
let element2 = element.innerHTML;
console.log(element2)

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.