Text Math
EasyAcc. 95.6%
+20 XP 5
Fixing Values
Many modern APIs will transfer solid numbers wrapped fully in raw text. To avoid string concatenations randomly ruining math logic, experts securely stick a Unary Plus (+) symbol directly beside variables initially.
The Assignment
- Force properly the inputted
stringAandstringBtexts into real numbers using safely only+. - Make their solid mathematical sum and return securely.
01EXAMPLE 1
Input
stringA = "10", stringB = "5"Output
15Explanation: Values properly added natively without weird appending.
Constraints
- Use the + operator for type manipulation efficiently.
- Produce an integer sum securely.
FundamentalsMathTypes
JavaScriptSystem handles I/O — write your function only
Loading...
5 Hidden
Input Arguments
stringA"10"
stringB"5"
Expected Output
15
Click RUN to test your solution