강의

멘토링

커뮤니티

Inflearn Community Q&A

haewonhan1493's profile image
haewonhan1493

asked

Final Coding Test: Frontend

Check requirements and set up environment

createRootElement가 static인 이유가 무엇인가요?

Written on

·

338

0

createRootElement가 static인 이유가 무엇인가요?

코테 준비 같이 해요!

Answer 1

0

Bonfire님의 프로필 이미지
Bonfire
Instructor

안녕하세요!

createRootElement가 static인 이유는 해당 객체에 종속적이지 않은 유틸성 기능이기 때문입니다. 따로 유틸성 함수로 빼내어 다른 클래스에서 재사용하게끔 수정하면 더 좋을 것입니다.

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes/static

haewonhan1493's profile image
haewonhan1493

asked

Ask a question