Write the total to the console.

Putting in console.log to write the total to the console.