Click counter
A click counter: an element looked up by id, an event listener, and a template literal updating the text.
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>My page</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<main class="card">
<h1>Hello from Utilrix</h1>
<p>Edit the HTML, CSS or JS and the preview updates as you type.</p>
<button id="count">Clicked 0 times</button>
</main>
<script src="script.js"></script>
</body>
</html>