1console.log(a); // write to the browser console
2document.write(a); // write to the HTML
3alert(a); // output in an alert box
4confirm("Really?"); // yes/no dialog, returns true/false depending on user click
5prompt("Your age?","0"); // input dialog. Second argument is the initial value
6