const pressButtonOn = () => {
let calculatorIsOn = false;
if(calculatorIsOn){
console.log("Calculator is turning on");
calculatorIsOn = false;
} else {
console.log("Calculator is turning off");
calculatorIsOn = true;
}
}
pressButtonOn();