Scenario 4

In this scenario, the project requirements define the following:

A SCO consists of an assessment with five tasks that must be completed in 50 seconds. Learners are informed before they begin the assessment that if they do not accurately complete the assessment within the allowable timeframe, then their session will end, and they will be directed back to the main menu where they can review the instructional content.

Complete the code below:

    function startContent()
    {
       // code to start an internal timer
       startTimer();
       var timeLimitAction = GetValue( "cmi.time__action" );

       // currentElapsedTime is a variable
       // that is set during the startTimer() function
       if ( currentElapsedTime > 50 )
       {
          if ( timeLimitAction == "" )
          {
             // exit the SCO
          }
       }
    }

Click after you complete this exercise.