Javascript

<html>
<body>

<h2>JavaScript in Body</h2>
<p id="demo"></p> //we can use class selctor also 
<script>
document.getElementById("demo").innerHTML = "My First JavaScript"; 
//we can use onClick() funcion also 
</script>

</body>
</html>

Display properties in javascript JavaScript can "display" data in different ways: