0
Q:

add javascript

//HOW TO ADD:
var num1 = 4;
var num2 = 6;
var answer = 4 + 6; //You can do num1 + num2 here!
function add(num1, num2) {
  return num1 + num2;
};
console.log("4 + 6 is: " + add());
console.log("I hope this helped!");
1
function add(param1, param2) {
    return param1 + param2
}
0
return a+b;
-1
<!DOCTYPE html>
<html lang="en-US">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Today's Date</title>
</head>

<body>

</body>

</html>
-2

New to Communities?

Join the community