let counter = 0; function num() { counter += 2; } num(); console.log(counter);