The problem was that when i looked into the console I wasnt able to find what i could do with it. But I was trying to convert the html returned element into an integer. I just got home and i came to find what i typed earlier was the solution. Like:
let x = parseFloat(document.querySelector('.x').innerText);
But thank you so much. I made this account yesterday and you guys helped me so much. I’ve never been on a forum before, so I was initially afraid to post.