Tell us what’s happening:
// Setup
var sum = 0;
function addThree() {
sum = sum + 3;
}
// Only change code below this line
function addFive(){
addfive =+ 5;
addfive =+ 3;
var result = addfive();
}
// Only change code above this line
addThree();
addFive();
Your code so far
// Setup
var sum = 0;
function addThree() {
sum = sum + 3;
}
// Only change code below this line
function addFive(){
addfive =+ 5;
addfive =+ 3;
var result = addfive();
}
// Only change code above this line
addThree();
addFive();
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36
.
Challenge: Understanding Undefined Value returned from a Function
Link to the challenge: