Welcome to the Treehouse Community
Looking to learn something new?
Danny Rubio2,546 Points
Random question on displaying the value.
I noticed that you used the alert function but I was wondering if you could use the document.write function?
Mike Hickman19,817 Points
alert("message here") - will pop up a separate alert window
console.log("message here") - will print the message to your terminal/console
document.write("message here") - will insert the message onto the actual html page
If you're asking for a specific test/quiz, you'll have to do it how Treehouse wants, but for your own use you can use whichever method you prefer or need.