JavaScript JavaScript Basics Hello, JavaScript! Write JavaScript Statements

Diquan Richard
Diquan Richard
365 Points

How do I add the code required to print "Begin program" to the browser's JavaScript console.

Not sure if I'm doing this right.

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
console.log("This message will print Begin program!");

1 Answer

Hi Diquan, Yes, you are doing it right, but consider the right path for the JS file.