title: promise chain example is not working
body: <p>I wanted to learn about promise chaining and I've try to call to the following function in order from 1 to 3 ,Currently its not working so what am I missing here ?</p>
  
  <pre><code>$(function () {
      function doSomething() {
          return new Promise(function (resolve) {
              var value = 1;
              resolve(value);
          });
      }
  
  
      function doSomething2(){
          return 2;
      };
  
      function doSomething3(){
          return 3;
      };
  
  
      doSomething().then(function (firstResult) {
  
          var result = "first result " + firstResult;
          alert(result);
  
      })doSomething2.then(function (secondResult) {
          var secReslut = "second result " + secondResult;
         return alert(secReslut);
      })()doSomething2.then(function (tr)
      {
        alert(tr)
      });
  
  
  });
  </code></pre>