title: How to change text color using javascript?
body: <p>I have a problem in changing color if the text in javascript.
  html:</p>
  
  <pre><code>   `&lt;div&gt;
         &lt;strong id="text"&gt;&lt;strong&gt;
      &lt;/div&gt;`
  </code></pre>
  
  <p>here is my javascript:</p>
  
  <pre><code>  ` function calculate(){
       var a = 1;
       var b = 2;
       var c = 3;
       var d = 4;
       var sumA = a+b;
       var sumB = c+d;
         if(sumA&gt;sumB){
            $('#text').text().fontcolor("blue"); //change color to blue
         }else{
            $('#text').text().fontcolor("red"); //change color to red
         }
      }`
  </code></pre>
  
  <p>None of the text changed the color</p>