1// If you have set the display property using JavaScript
2let current = element.style.display;
3
4// If you have not set the display property manually
5let current = window.getComputedStyle(element).display;
6
7// 'current' will be the display style as a string (eg. "none", "block", etc)