1분 퀴즈

    3. 다음과 같은 코드가 있을 때, p 태그의 fz20 클래스 속성을 삭제하고, sample text를 change text로 변경하고 싶다면 (가), (나)에 들어갈 내용으로 맞게 짝지어진 것을 고르세요.

    <p id="text" class="red-color fz20">sample text</p>
    <script>
      const pEl = document.querySelector("#text");
      pEl.(가) = "change text"; 
      pEl.(나);
    </script>

    (가) - (나)

    datase - removeClass("fz20")

    datase - setAttribute("fz20")

    innerHTML - toggleClass()

    innerTex - classList.remove("fz20")

    textConten - removeClass("fz20")

    정답확인

    신간 소식 구독하기
    뉴스레터에 가입하시고 이메일로 신간 소식을 받아 보세요.