const setIsMarkON = () => gCurrTxt.isMark = true; code example Example: js define constant by element id const elem = document.getElementById('elementID');