https://jsfiddle.net/wfhq9dz1/
This should fire, but for some reason it is not, and I cannot work out why. I’m trying to work through the MDN examples where you create a start and stop button for a timer: https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Asynchronous/Timeouts_and_intervals
Any pointers would be much appreciated.
chrs
Here is the source code in case something happens to the above fiddle:
<button id="start"> Start </button>
<script>
let startButton = document.getElementById("start");
startButton.onClick = function(){
console.log("this doesn't seem to be firing when you click the start button! Any pointers appreciated!");
}
</script>