Here is the function scroll of my menu. I want to make cur const, so i need perform an "cur = cur[cur.length - 1];" while declaring a variable. Is it possible an