Skip to content

Latest commit

 

History

History
10 lines (8 loc) · 545 Bytes

readme.md

File metadata and controls

10 lines (8 loc) · 545 Bytes

Sum of params

Read the guideline before start

  • Read params from a command line and print the result of addition or multiplication
    • node src/app.js add 1 2 3 4 5 should print 15 - the sum of all numbers
    • node src/app.js multiply 3 4 5 should print 60 - the product of 3 * 4 * 5
  • For any other operation print Operation is not supported!
  • Skip all not numeric values
  • If there are no numeric values, print There is nothing to add (or multiply)