title: First letter of Words to UpperCase
body: <p>I am making my debut with coding and i got stuck with a problem. I have to turn the First letter of a string toUpperCase.
  Can someone please guide me ?
  e.g : the quick fox ---> The Quick Fox.</p>
  
  <p>here is my code :</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>function convertFirstLetterOfWordsToUpperCase(phrase){
      phrase = phrase.split("");
      console.log(mot);
      phrase[0] = phrase[0].toUpperCase();
      for(var i = 1; i &lt;= phrase.length; i++){
       if(phrase[i] == ""){
        i++;
        phrase[i] = phrase[i].toUpperCase();
       }
      }
      phrase = phrase.join("");
      console.log(mot);
  }
  convertFirstLetterOfWordsToUpperCase("the quick fox");</code></pre>
  </div>
  </div>
  </p>
  
  <p>here is the display : The quick fox.<br/>
   Thanks for the help.</p>