계산기(advanced)

Creating the dots·2021년 6월 23일
0

Javascript

목록 보기
6/24
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
  {
    
    
  }
}
    
    
profile
어제보다 나은 오늘을 만드는 중

0개의 댓글