says sum has to equal 8 for both functions, what am i doing wrong here
// Setup
let sum = 0;
function addThree() {
sum = sum + 3;
}
function addFive() {
sum += 5;
}
Your browser information:
User Agent is: Mozilla/5.0 (X11; CrOS x86_64 14989.107.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36
Challenge: Basic JavaScript - Understanding Undefined Value returned from a Function
Link to the challenge: