title: print variable using text() in jquery?
body: <p>The value of the variable "val" is not displayed. Alternatively, it prints the variable name.</p>
  
  <pre><code> var val="Some text";
  
   $("span").text(val);
  </code></pre>
  
  <p><strong>Result :</strong></p>
  
  <pre><code> val
  </code></pre>