Common console.log of all scope variables
Would be awesome if there were a console.locals() or something instead.
by bgrins
HTML
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
<ul id="something">
<li>Item</li>
<li>Item</li>
<li>Item</li>
<li>Item</li>
<li>Item</li>
<li>Item</li>
</ul>
</body>
</html>
JavaScript
function checkSomething() {
var something = document.getElementById("something");
var height = something.offsetHeight;
var items = something.getElementsByTagName("li");
console.log(something, height, items);
}
checkSomething();