【週刊ドットインストール】 Figma入門を制作中、256timesの新クラスを企画中
main.jsの最初の部分にPanelクラスの定義がされています。
class Panel { constructor() { this.el = document.createElement('li'); this.el.classList.add('pressed'); }
constructor内の el は変数の宣言をする必要無いのでしょうか?
この回答を見るにはプレミアムプランへの登録が必要です