Skip to content

Tag: while-loop

Always calculate var Javascript

I’m trying to show a variable on a html page that should always recalculating itself. And in my HTML, I have a div showing the x variable. But when the while loop is working, I can’t click on any other button. How can I always calculate the x variable (until the user closes the page) but still bei…