JavaScript JavaScript Basics Hello, JavaScript! Write JavaScript Statements

FAUSTO CAMACHO
FAUSTO CAMACHO
2,320 Points

How can I write a code for an alert dialog with the message "I am Programming!"

index.html
<!DOCTYPE HTML>
<html>
  <head>
    <meta charset="utf-8">
    <title>JavaScript Basics</title>
  </head>
  <body>
    <script src="app.js"></script>
  </body>
</html>
app.js
alert("Hi there");
console.log("Begin program");

1 Answer

Hi Fausto!

Like this:

console.log("Begin program"); // Task 1

alert("I am programming!"); // Task 2

I hope that helps.

Stay safe and happy coding!