<!DOCTYPE html>
<html>
<head>
<style>
table, td {
    border: 1px solid black;
    border-collapse: separate;
}

</style>
</head>
<body>

<table id="myTable" style="empty-cells:hide;">
  <tr>
    <td>January</td>
    <td>$100</td>
  </tr>
  <tr>
    <td>February</td>
    <td></td>
  </tr>
</table>
<br>

<button type="button" onclick="myFunction()">Return the emptyCells property</button>

<script>
function myFunction() {
    alert(document.getElementById("myTable").style.emptyCells);
}
</script>

</body>
</html>