<div id="test">IsRayNotArray 1</div>
<div id="test">IsRayNotArray 2</div>
const test = document.getElementById('test');
console.log(test.innerText); // IsRayNotArray 1
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.