var left = document.getElementById('sq').style.left; // return Undefined
<div id="sq" class="square"></div>