Build a Timer component that satisfies the following user stories:
- When a countdown reaches zero (NOTE: timer MUST reach 00:00), a sound indicating that time is up should play. This should utilize an HTML5 audio tag and have a corresponding
id="beep".
- The audio element with
id="beep" must be 1 second or longer.
- The audio element with id of
beep must stop playing and be rewound to the beginning when the element with the id of reset is clicked.
- Must keep track of the current time remaining.
Build a Timer component that satisfies the following user stories:
id="beep".id="beep"must be 1 second or longer.beepmust stop playing and be rewound to the beginning when the element with the id ofresetis clicked.