計算機(Advanced)


const display = document.querSelector('.calculator__display--for-advanced');
//이하 생략

if(action==='number')
{
  if(operatorforAdvanced)//연산자가 할당된 후
  {
    if(action==='number')
    {
      if(previousKey==='operator')
      {
        display.textContent = buttonContent;
      }
      else
      {
        display.textContent += buttonContent;
      }
    }
  }
  else
  {
    
    
  }
}