Question: Javascript Write a function that returns the sum of two numbers. Example For param1 = 1 and param2 = 2, the output should be add(param1,

Javascript

Write a function that returns the sum of two numbers.

Example

For param1 = 1 and param2 = 2, the output should be add(param1, param2) = 3.

Input/Output

  • [execution time limit] 4 seconds (js)

  • [input] integer param1

    Guaranteed constraints: -1000 param1 1000.

  • [input] integer param2

    Guaranteed constraints: -1000 param2 1000.

  • [output] integer

    The sum of the two inputs.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!