This repo is for the 7shifts developer position take home project.
- It takes a string with numbers and special characters, splits the numbers from the string.
- Next, it converts the elements in the number string array to an actual number array
- Finally it takes the number array and returns the total of all the numbers in the array.
-- Negative numbers throw and error and shows the number(s) that triggered the error
-- Numbers greater than 1000 are ignored while adding
-- Supports custom delimiters.
To get started, make sure NodeJS and npm are installed and up to date
Next npm i
to install dependencies.
Then, npm run simple-test
should get you started.
You can configure and add more custom test cases in start.js
for more results.
Stay frosty and Happy Coding
@mrtotks