i have a div and button i click the button fist time no response and click again and show
function banne() {
  var ban = document.getElementById("content");
  //consloe.log(ban.style.display === "none");
  if (ban.style.display === "none") {
    ban.style.display = "block";
  } else {
    ban.style.display = "none";
  }
}
.banner-content {
  display: none;
  height: 100px;
  color: #fff;
  background: #1b1b1b;
}
<button class="banner" onclick="banne()"> know </button>
<div class="banner-content" id="content">
  Some Data
</div>
here the console value show false value but i write the style inline style="display:none" in div class banner-content it working, why the style sheet value not taken ,any idea?