<!DOCTYPE html>
<html>
<body>
<h1>JavaScript values() Method</h1>
<p id="demo"></p>
<script>
let list = document.body.childNodes;
let txt = "";
for (let x of list.values()) {
txt += x + "<br>";
}
document.getElementById("demo").innerHTML = txt;
</script>
</body>
</html>