assets/javascript/app.js
// function to display last page as well as summary results
function to display last page as well as summary results
function to display last page as well as summary results
function lastPage() {
    $('#trivia').html(
      `<hr><h3> Correct: ${correct} </h3><h3> Incorrect: ${incorrect} </h3> <a id="reset" class="btn btn-primary btn-lg" href="#" role="button">Reset</a>`
    );
    $('#myChart').show();
    makeGraph(correct, incorrect);
  }
function lastPage ( ) { $ ( '#trivia' ) . html ( ` ${ correct } ${ incorrect } ` ) ; $ ( '#myChart' ) . show ( ) ; makeGraph ( correct , incorrect ) ; }
function to display last page as well as summary results
function to display last page as well as summary results