Time Stop

For this free friday I decided to work on a JavaScript project where i make a watch website but can control the watch Basically like a time watch.

I first started with making the Html and making id which bacially is a name where you can then control it with that name in the JavaScript

I then put button for the watch where you can click and change the time

This is what the website looks with just the HTML and no JavaScript

Since we need more than start button to function our watch

I just copy and pasted the first buttons and changed it to stop and Reset button

I then started working on the JavaScript for the Functionality of the watch

There are four function for the four buttons on HTML

The Let is a variable that lets the Java know to that we’ll be changing it later like you are able to change the number like how it is zero right now

The null on the let interval stands for nothing.

const is where you cannot change it, it stands for constant The “time” is from HTML where we can control it in JAVA

The ++ on Second Elapsed tells the Java to add one

The buttons don’t do anything yet so the functions set Time and timer starts the timer

Leave a Reply

Your email address will not be published. Required fields are marked *