Added alert and console.log

Both have concatenated string combining text and variable and
outputting as an alert and print to the console.