title: Condition not getting properly evaluated in JavaScript
body: <p>I have the following code:</p>
  
  <pre><code>function disabler(){
      var content = document.getElementById("show").textContent;
      var correct = "Roll Number Correct";
      var incorrect = "Roll Number Incorrect";
      alert(content == correct);
      /* if (){
          alert(content);
      } */ 
  }
  </code></pre>
  
  <p>I have checked the value of the content variable ( which is as same as the correct variable)and used the typeof operator to be sure of its type. To my knowledge, the alert should yield true but it is not. What could be the possible solutions?</p>