Paremeter passing
tdudek (3)

I'm messing around with parameter passing in functions. The total is not being correctly passed here. What is the problem?

You are viewing a single comment. View All
Answered by heyitsmarcus (287) [earned 5 cycles]
View Answer
ash15khng (393)

When num1 and num2 are changed in the function, they aren't changed in the global scope (complicated stuff wow) which means that you pass 0 and 0 into the second function.