Basic JavaScript: Understanding Undefined Value returned from a Function Stuck

Im Stuck In this challenge please help.

my code:

// example
var sum = 0;

function addThree() {
  sum = sum + 3;
}

// Only change code below this line

sum = sum + 5;
var sum = 8;
function addFive() {
sum = sum + 5;

}

// Only change code above this line

addThree();
addFive();

Challenge: Understanding Undefined Value returned from a Function

Link to the challenge:

1 Like

You were only asked to add the function, nothing else. Remove the variables you added before it.

1 Like