MCPcopy Create free account
hub / github.com/AyushSaini00/60minuteJavaScript / toggleButtons

Function toggleButtons

stopwatch/app.js:62–70  ·  view source on GitHub ↗
(Key)

Source from the content-addressed store, hash-verified

60 toggleButtons("PLAY");
61}
62function toggleButtons(Key) {
63 if(Key === 'PLAY'){
64 playButton.style.display = 'block';
65 pauseButton.style.display = 'none';
66 } else {
67 playButton.style.display = 'none';
68 pauseButton.style.display = 'block';
69 }
70}
71
72
73//EVENT LISTENERS

Callers 3

playFunction · 0.85
pauseFunction · 0.85
resetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected