Display

You don't "print" with JavaScript, but you can display data in several ways.

You can alert something to have it pop-up on the screen.

alert("I will pop up!");

You can write into an HTML element using innerHTML

<p id = "sampleP"></p>

<script type=”text/javascript”>

document.getElementById("sampleP").innerHTML = "I will be inserted in the paragraph above.";

</script>

You can write into something called the console in the browser (we'll talk about this in a bit).

console.log(2 + 3);