let counter = 100;
function myfunction(value) {
  alert(value);
}
myfunction(counter);