Coding

JavaScript Statements – JavaScript Tutorial

Task

JavaScript Statements

Description

JavaScript statements are “instructions” to be “executed” by the web browser In HTML.
Example statement tells the browser to write “Hello World.” inside an HTML element with id=”demo”:

Example

<p id="demo"></p>
<script>
document.getElementById("demo").innerHTML = "Hello World.";
</script>
Try It Yourself - Online Compliler >>