Like minitech said, console.log("There is an error here")
.
You can check for the message by using the Javascript console. If you are on Google Chrome, Menu -> Tools -> Javascript Console
. Or Ctrl Shift J
.
The old, traditional method would be to use alert("Error!")
. Not recommended, but you can use it if you find delight in immediate response.