[jQuery] How is "height" calculated?

[jQuery] How is "height" calculated?

<div>Hi,</div>
<div> </div>
<div>I am trying to understand how the height of an element is calculated in jQuery. I don't understand how the height can be calculated especially when the element is hidden with display:none.</div>
<div> </div>
<div>Thanks</div>
<div> </div>
<div>Fred</div>
<div> </div>