<!DOCTYPE html>
<html>
<body>
<h1>Hello Plunker!</h1>
<script src="script.js"></script>
</body>
</html>
console.time('time1');
console.log(document.body.childNodes[1].textContent);
console.timeEnd('time1');
console.time('time2');
console.log(document.querySelector('h1').textContent);
console.timeEnd('time2');