title: Promise is not a constructor
body: <p>I'm trying to use a promise but get a type error: Promise is not a constructor. </p>
  
  <p>Here's the promise:</p>
  
  <pre><code>        var Promise = new Promise(
              function (resolve,error) {
                  for (var key in excludeValues) {
                     /* some ifs */
                      minVal = someValue 
                      ........
                      ........
                      }
  
  
                  resolve(errors)
              });
              Promise.then(
              function(data){
                  if (minVal &gt; maxVal)
                  {
                      errors.minMax.push(
                          'minMax'
                      )
                  }
  
                  if (gapVal &gt; minVal * -1)
                  {
                      errors.minMax.push(
                          'gapVal'
                      )
                  }
                  return (errors.minMax.length == 0 &amp;&amp; errors.zahl.length == 0 &amp;&amp; errors.hoch.length == 0 &amp;&amp; errors.niedrig.length == 0)
              }
          );
  </code></pre>
  
  <p>Can someone tell me what I'm doing wrong?</p>