I gave a div in my html file, a height of 100x and a width of 100px. I was trying to output the height using javascript, like this..
console.log(document.GetElementById("box").style.height);
// i gave the div an ID of box and styled it using css,but it console.logged an empty line.
https://i.stack.imgur.com/zVqEg.png
//But when i styled the div using css inline styling,it console.logged the height.
https://i.stack.imgur.com/biXZK.png