Vital Assignment
EasyAcc. 98.5%
+10 XP 5
Digital Alchemy
As a junior data-smith, your first task is to combine two vital energy streams. The stability of the system depends on your ability to sum their intensities with perfect accuracy.
- Receive two numbers
num1andnum2. - Declare a variable named
total. - Assign the sum of
num1andnum2to this variable. - Return the
totalvariable.
01EXAMPLE 1
Input
num1 = 15, num2 = 25Output
40Explanation: 15 + 25 = 40
Constraints
- Return the sum of the two parameters.
- The return value must be a number.
FundamentalsVariablesArithmetic
JavaScriptSystem handles I/O — write your function only
Loading...
10 Hidden
Input Arguments
num115
num225
Expected Output
40
Click RUN to test your solution