title: TypeError: func(...).then is not a function
body: <p>I am a beginner of JavaScript. I am trying to understand the functions and promises in JS. I wrote a small code. 
  code Purpose: I wrote this code to understand the working of promise function(<code>then</code>) on function with a return value.
        input: a,b
        output: if the sum of a &amp; b is 0, then show the alert statement else show sum in the alert value.</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>const func = (a, b) =&gt; {
  
    let operand1 = a * 10;
    let operand2 = b * 10;
  
    return operand1 + operand2
  };
  
  const funcwrapper = (a, b) =&gt; {
    func(a, b).then((sum) =&gt; {
      if (sum == 0) {
        window.alert("value is zero");
      } else {
        window.alert(("sum is " + sum));
      }
    })
  };
  
  funcwrapper(5, 5);</code></pre>
  </div>
  </div>
  </p>
  
  <p>I am still confused with this promise on functions with some return value after going through lot of investigation. So finally tried to implement the code to understand and got stuck with this error.</p>
  
  <p>Please help me in understanding this topic.</p>
  
  <p>Your help is appreciated.
  Thanks in advance </p>