<!doctype html>
<button id="button">Button</button>
<div id="log">FAIL</div>
<script>
document.getElementById("button").addEventListener("click", () =>
    document.getElementById("log").textContent = "PASS");
</script>
