I used named function, function expression, and arrow function to add two numbers together.
function add(num1, num2){
num1 = 2;
num2 = 3;
return (num1 + num2);
}
console.log(add());
const add = function(num1, num2){
var num1 = 2;
var num2 = 3;
return num1 + num2;
}
console.log(add());
const add = (num1, num2) =>{
var num1 = 2;
var num2 = 3;
return num1 + num2;
}
console.log(add());