Tell us what’s happening:
Your code so far
// Example
var sum = 0;
function addThree() {
sum = sum + 3;
}
// Only change code below this line
var sum = 3;
function addFive() {
sum += 5;
}
var result = addFive();
// Only change code above this line
addThree();
addFive();
Your browser information:
User Agent is: Mozilla/5.0 (Linux; Android 6.0; AfriOne 2in1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.116 Safari/537.36
.
Challenge: Understanding Undefined Value returned from a Function
Link to the challenge:
https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/basic-javascript/understanding-undefined-value-returned-from-a-function