Page 1 of 1

JavaScript: Ending for Lines of Code

Posted: Sun Aug 03, 2025 10:47 am
by The Jason

Code: Select all


<!DOCTYPE html>

<html>

<head><title>JavaScript Examples</title></head>

<body>

<script>

// Lines of code are ended with a semicolon. Something you may have noticed in other posts.

document.getElementById('demo').innerHTML = "The totality of the code line. Something that isn't seen by others ends with a semicolon.";

Let q = "quarter"; 

// another example above

</script>


</body>

</html>