| Viewed 100 times

how to return the sum of two numbers


I need a Javascript function that takes two numbers as arguments and returns their sum.

1 Answer
Mohammad Qandeel
Answered
20

follow this code snippet

function sum(a,b){
	return a+b;
}
console.log(sum(1,2));
 


Related Questions