Bummer! This is just a preview. You need to be signed in with an account to view the entire instruction.
- Understanding the HTML Script Tag in JavaScript
- Script Tag Quiz 6 questions
- Comprehensive Guide to External JavaScript in HTML
- External JavaScript Quiz 6 questions
- Understanding the Element and JavaScript in XHTML Files
- XHTML Files Quiz 6 questions
- Manipulating HTML and Outputs with JavaScript
- JavaScript Comments
- Output from a JavaScript Program
- Manipulating HTML and Outputs Quiz 5 questions
- Example of a Simple JavaScript Program
- Simple JavaScript Quiz 6 questions
Well done!
You have completed (UPI) Chapter 2: Integration of JavaScript with HTML!
Instruction
Example of a Simple JavaScript Program
First JavaScript Program
The following JavaScript program shows how to combine all of the elements described in the last 3 sections.
<html>
<head>
<title>First JavaScript Program</title>
</head>
<body>
<script>
/*
This is an example of JavaScript
*/
console.log("The program is running"); // Write to the console
docum...