Copy and paste the following code.
var player = GetPlayer();
GetPlayer() – Returns an object that contains the methods and variable values of storyline
lmsAPI – Is an object from Storyline’s SCORM API that contains the methods and values for establishing the connection and data flow from course to LMS
SetScore(score, maxScore, minScore) – SetScore is a function inside lmsAPI object that sends the score to the LMS. It accepts 3 parameters “Score, Max Score and Minimum Score”
commitData() – Is a function inside lmsAPI object that saves all the data sent to LMS in the database.