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.

  1. Receive two numbers num1 and num2.
  2. Declare a variable named total.
  3. Assign the sum of num1 and num2 to this variable.
  4. Return the total variable.

01EXAMPLE 1

Inputnum1 = 15, num2 = 25
Output40

Explanation: 15 + 25 = 40

Constraints

  • Return the sum of the two parameters.
  • The return value must be a number.
FundamentalsVariablesArithmetic
JavaScript
Loading...
10 Hidden

Input Arguments

num115
num225

Expected Output

40

Click RUN to test your solution