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

  1. Force properly the inputted stringA and stringB texts into real numbers using safely only +.
  2. Make their solid mathematical sum and return securely.

01EXAMPLE 1

InputstringA = "10", stringB = "5"
Output15

Explanation: Values properly added natively without weird appending.

Constraints

  • Use the + operator for type manipulation efficiently.
  • Produce an integer sum securely.
FundamentalsMathTypes
JavaScript
Loading...
5 Hidden

Input Arguments

stringA"10"
stringB"5"

Expected Output

15

Click RUN to test your solution