AP Principles Logo

PX_SimpleJavascript_lastname

Instructions

Complete the following assignment.

Drill down to your class under your google drive.
Create a text file using notepad.
Click on this to see how notepad can used to create your html document.
File name is PX_SimpleJavascript_lastname.html

<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>Simple JavaScript Greeting</title>
</head>

<body>
  <h1>Welcome to JavaScript!</h1>
  <p id="message"></p>
  <script>
    // Ask for the user's name
    let name = prompt("What is your name?");
    // Create a greeting message
    let greeting = "Hello, " + name + "! Welcome to JavaScript programming.";
    // Display the message in the web page
    document.getElementById("message").innerText = greeting;
  </script>
</body>
</html>
The name of the file will be: PX_SimpleJavascript_lastname

Files to save in your google drive under your class name
and to Submit to (Google Classroom)