Day-20 element.classList


Element.classList


The Element.classList is read-only property property that returns the class name(s) of an element, as a DOMTokenList object.
It can be modyfied with add(), remove(), toggle(), etc..
modal.classList.remove('hidden');
modal.classList.add('hidden');

モードウィンドウ(Mode Window)ボタンをクリックしたときの操作の有効化/無効化