What is wrong with my CoDiNg

// Example

var sum = 0;

function addThree() {

sum = sum + 3;

}

// Only change code below this line

function addFive(){

sum = sum + 5;

}

Once both functions have run, the sum should be equal to 8
I don’t understand what is wrong

have you called the functions?


Please share the link to the challenge


I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (').

No clue how to call that function… I am completely confuse.
So hard, the syntax is always very ambiguous in your exercise…

I assume that you could delete these two function calls
image

Ok Thanks, I did not know the addThree(); had to be part of the solutions

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.