let hero = document.getElementsByClassName('hero');
console.log(hero.offsetHeight);
<article class="hero">
<header class='align top_header'>
<a href="#" class="logo">
CS
</a>
<div class="top_navigation">
<nav class="top_menu">
<a href="#">Home</a>
<a href="#">Pages</a>
<a href="#">Features</a>
<a href="#">Extensions</a>
<a href="#">Tutorials</a>
<a href="#">Contact Us</a>
</nav>
<nav class="social_nets">
<i class="fab fa-facebook-f"></i>
<i class="fab fa-twitter"></i>
<i class="fab fa-skype"></i>
<i class="fab fa-linkedin-in"></i>
</nav>
</div>
</header>
<hr>
<h1>CREATIVIES</h1>
<h2 class="link"><a href="#">POWER BY PSDFREEBIES.COM</a></h2>
<div class="scroll_down" onclick=scrollDown()>
<p>Sroll Down</p>
<div class="circle">
<i class="fas fa-chevron-down"></i>
</div>
</div>
</article>
let heroBlocks = document.getElementsByClassName('hero');
if (heroBlocks.length > 0) {
let hero = heroBlocks[0];
console.log(hero.offsetHeight);
}
let hero = document.getElementsByClassName('hero')[0];
console.log(hero.offsetHeight);
let hero = document.querySelector('.hero');
console.log(hero.offsetHeight);
let hero = document.getElementsByClassName('hero');
console.warn(hero); // выведет HTMLCollection [], вы сразу поймете, что это не элемент, а коллекция/список.