title: javascript return units, if present when multiplying 2 numbers
body: <p>2 numbers input to my function values are <code>a, "0.045u"</code> and <code>b, "3"</code></p>
  
  <pre><code>function mult2nums(a,b) {
      var c = null;
      var unitsFora = null;
      var unitsForb = null;
      var cUnits = null;
      //--&gt; issue - unitsFora = ??; // how to strip off units designator
      //--&gt; issue - unitsForb = ??; // how to strip off units designator
      a = isFloat(a); // also works if int
      b = isFloat(b); //
      c = a*b; 
      // add logic to compare unit designators and convert as needed
      return(c+cUnits); // need to return the units, returns a string type
  }
  </code></pre>