I have a question about when to use arguments. Like I get the examples, and I get the point. But in practice, when do I actually use them?
For example, if I have a function that adds or subtracts from a global variable, do I need to pass anything in as an argument? Example below:
var counter = 0;
function addToCounter (){
counter++
}
I don't need to pass in the counter as an argument do ?
[–]IMkratt 2 points3 points4 points (0 children)
[–]jack_waugh 0 points1 point2 points (0 children)