RAILWAYS ROUTE DESIGNER: TRICKLES ELAPSED TIME: 10:25
Chapter10: Application Development
Section: Chapter Questions
Problem 15VE
Related questions
Question
Create a function named time() so that it displays elapsed time since startBtn is clicked in MM:SS format. Also write html code that displays designer and time like the picture provided (on the side of an another div which contains table)
html:
<div>
<h3id="name">ROUTE DESIGNER: </h3>
<h3id="times">TIME: </h3>
</div>
<div id="anotherDiv" </div>
JS:
startBtn.addEventListener('click', startGame)
function startGame(){
document.querySelector('#name').innerHTML="ROUTE DESIGNER: "+nameInput.value
document.querySelector('#times').innerHTML="TIME ELAPSED: " + time
}
AI-Generated Solution
AI-generated content may present inaccurate or offensive content that does not represent bartleby’s views.
Unlock instant AI solutions
Tap the button
to generate a solution
Recommended textbooks for you
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning
LINUX+ AND LPIC-1 GDE.TO LINUX CERTIF.
Computer Science
ISBN:
9781337569798
Author:
ECKERT
Publisher:
CENGAGE L
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning
LINUX+ AND LPIC-1 GDE.TO LINUX CERTIF.
Computer Science
ISBN:
9781337569798
Author:
ECKERT
Publisher:
CENGAGE L
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
Fundamentals of Information Systems
Computer Science
ISBN:
9781305082168
Author:
Ralph Stair, George Reynolds
Publisher:
Cengage Learning
Operations Research : Applications and Algorithms
Computer Science
ISBN:
9780534380588
Author:
Wayne L. Winston
Publisher:
Brooks Cole