jsfiddle-console example
https://github.com/eu81273/jsfiddle-console
HTML
<script src="https://cdn.jsdelivr.net/gh/eu81273/jsfiddle-console/console.js"></script>
<a href="#">First test</a>
<a href="#"><h2> Second test</h2></a>
<a href="#"><p>Third Test</p></a>
CSS
a{
font-size: 40px;
}
h2{
font-size: 20px;
}
p{
font-size: 10px;
}
JavaScript
var a = document.getElementsByTagName('a');
for (var i= 0; i < a.length; ++i){
var style = window.getComputedStyle(a[i], null).getPropertyValue('font-size');
var fontSize = parseFloat(style);
console.log(a[i].textContent + " | font-size:" + fontSize);
console.log("-----------");
}