← Back to challenges

Adding Numbers

JavaScriptHardmathnumbersconditions

Instructions

Create a function that takes two number strings and returns their sum as a string.

Examples

add("111", "111") ➞ "222"

add("10", "80") ➞ "90"

add("", "20") ➞ "Invalid Operation"

Notes

If any input is "", undefined or null, return "Invalid Operation".

javascript
Loading editor…
to run
Walks through the solution with reasoning and edge cases.
Next: Just Find the Vertex