bowling_score_2.js
// The score for the frame is the total number of pins knocked down.
The score for the frame is the total number of pins knocked down.
The score for the frame is the total number of pins knocked down .
function openFrame(arrayIndex, index)
    {
      console.log(' ');
      console.log('This is the openFrame function.');
      console.log('Frame ' + (Number(i) + 1) + ' was an open frame.');
      var openFrameScore = splitScore[i];
      var throwNumber01 = 0;
      var throwNumber02 = 0;
      console.log('openFrameScore = ' + openFrameScore);
      throwNumber01 = Number(openFrameScore[0]);
      console.log('throwNumber01 = ' + throwNumber01);
      throwNumber02 = Number(openFrameScore[1]);
      console.log('throwNumber02 = ' + throwNumber02);
      pointsPass1[i] = throwNumber01 + throwNumber02;
      console.log('pointsPass1[i] = throwNumber01 + throwNumber02 = ' + pointsPass1[i]);
    } 
function openFrame ( arrayIndex , index ) { console . log ( ' ' ) ; console . log ( 'This is the openFrame function.' ) ; console . log ( 'Frame ' + ( Number ( i ) + 1 ) + ' was an open frame.' ) ; var openFrameScore = splitScore [ i ] ; var throwNumber01 = 0 ; var throwNumber02 = 0 ; console . log ( 'openFrameScore = ' + openFrameScore ) ; throwNumber01 = Number ( openFrameScore [ 0 ] ) ; console . log ( 'throwNumber01 = ' + throwNumber01 ) ; throwNumber02 = Number ( openFrameScore [ 1 ] ) ; console . log ( 'throwNumber02 = ' + throwNumber02 ) ; pointsPass1 [ i ] = throwNumber01 + throwNumber02 ; console . log ( 'pointsPass1[i] = throwNumber01 + throwNumber02 = ' + pointsPass1 [ i ] ) ; }
The score for the frame is the total number of pins knocked down.
The score for the frame is the total number of pins knocked down .
// Add the scores of the two throws of the frame. // end of function openFrame