2. Above closing </head> tag, insert an external script element that points to the functions.js file in the tutorial.02\case1 folder
- Code: Select all
<script src="functions.js" type="text/javascript"></script>
</head>
3. Below this script element, insert another script element. Within the script element, declare two variables. The first variable is named seconds and will store the current elapsed time that the user has worked on the exam. The second variable is named clockld and will reference the commands used to repeatedly update the clock value. set the initial value of the seconds variable to 0. Do not set an initial value for the clockld variable
- Code: Select all
<script src="functions.js" type="text/javascript"></script>
<script>
var seconds = 0;
var clockld;
</script>
</head>
4.( this is where i start to get lost.

a. Use a unary operator to increase the value of the seconds variable by 1
b. Change the value of the quizclock field in the quiz form to the value of the seconds variable
- Code: Select all
<script src="functions.js" type="text/javascript"></script>
<script>
var seconds = 0;
var clockld;
</script>
<script>
function runClock(){
thisSecond=.getSeconds()+1;
thisMinute=.getMinutes();
thisHour=.getHour();
}
</script>
</head>
Any help would be much appreciated. If you need any more information just ask, thank you