<div style="display: none;">
<span>Hello</span>
</div>
const div = document.querySelector('div');
// getComputedStyle(div).display === 'none';
const span = document.querySelector('span');
// how can I tell if the span is shown?
In the code above, is there any easy way to tell whether the span is shown in the window or not?