RAILWAYS ROUTE DESIGNER: TRICKLES ELAPSED TIME: 10:25
Chapter10: Application Development
Section: Chapter Questions
Problem 15VE
Related questions
Question
1. Create a function named time() so that it displays elapsed time since startBtn is clicked in MM:SS format
2. 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
}

Transcribed Image Text:RAILWAYS
ROUTE DESIGNER:
TRICKLES
ELAPSED TIME:
10:25
AI-Generated Solution
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