@kevinwin/

calculator

Jest

Implement a function that takes a string as an input. The string contains an arithmetic operation 1+2*3/4. There are no parens or negative numbers. Write a function that returns the result of all operations following the order of operations

fork
loading
Files
  • config.json
  • add-test.js
  • add.js
config.json
1
2
3
4
5
{
  "testRegex": ".*-test\\.js$",
  "testEnvironment": "node"
}