Walker-TW / review

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

academic math paper easy to read Product already exists Looks for sum extracts sums Take sum strings & evaluate

stored as strings

Whole Numbers: whole or decimals (3 places) Operators : + - * / Edge Cases are possible Output returned = An array of the output [sum string, outputted result (number)]

Input specification = There must be spaces between the number and operator

What we are looking for = "1 + 1" , ["1 + 1", 2]

Edge Cases =

  • String spacing is wrong = "Input must be a valid mathematical string separated by spaces"
  • String empty = "the string is empty you numpty"
  • No Argument supplied = "Please supply an argument"

Input/ Output

1+1 / 2 1-1 / 0

About


Languages

Language:JavaScript 100.0%