Scenario 3

A learner is participating in the content when it becomes necessary for the learner to leave the SCO but not the LMS. Use logout to enable the learner to leave the SCO with the data retained.

Complete the following code.

function onLogout()
{
// exit the application due to a logout of the content by the user
SetValue( "cmi.exit","" );
// terminate the activity session
Terminate( "" );
}

Click after you complete this exercise.