least
while (true) {
runs an endless loop that hangs the page ...
and c - it seems that in some places it was Russian . In this connection, it is worth understanding that variables should have meaningful names, and not like after obfuscation
var count = 0; function Click() { document.getElementById('click').innerHTML = count++; } Click();
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title>Кликер</title> <link href="css/default.css" rel="stylesheet" /> <script src="js/main.js"></script> </head> <body> <input type="button" value="Клик" onclick="Click()" /> <div id="click"></div> </body> </html>