Hello I am currently working on a multi-sim project. In the file I have already created a timer that goes from 00 - 80 and resets afterward, alongside a pause switch. I however need help constructing a button that will reset the timer on-push. Would someone please illustrate and explain the process of creating this reset button?

Hello I am currently working on a multisim project In the file I have already created a timer that goes from 00 80 and resets afterward alongside a pause switch class=

Respuesta :

// Copyright 2017 The Chromium Authors. All rights reserved.

// Use of this source code is governed by a BSD-style license that can be

// found in the LICENSE file.

'use strict';

/**

* Alias for document.getElementById.

* @param {string} id The ID of the element to find.

* @return {HTMLElement} The found element or null if not found.

*/

function $(id) {

 // eslint-disable-next-line no-restricted-properties

 return document.getElementById(id);

}

/**

* Get the preferred language for UI localization. Represents Chrome's UI