[text] mainus

Viewer

  1. // File name: App.js
  2. const calculator = require('./usercalc');
  3.  
  4. let x = 150, y = 210;
  5.  
  6. console.log("Addition of 50 and 20 is "
  7.         + calculator.add(x, y));
  8.  
  9. console.log("Subtraction of 50 and 20 is "
  10.         + calculator.sub(x, y));
  11.  
  12. console.log("Multiplication of 50 and 20 is "
  13.         + calculator.mult(x, y));
  14.  
  15. console.log("Division of 50 and 20 is "
  16.         + calculator.div(x, y));
  17.  

Editor

You can edit this paste and save as new:


File Description
  • mainus
  • Paste Code
  • 18 Apr-2024
  • 380 Bytes
You can Share it: