The solution is: ```js let scrollBottom = elem.scrollHeight - elem.scrollTop - elem.clientHeight; ```