JavaScript JavaScript Basics Hello, JavaScript! Write JavaScript Statements

Next, in the app.js file, add the code required to print "Begin program" to the browser's JavaScript console.

index.html
<!DOCTYPE HTML>
<html>
  <head>
    <meta charset="utf-8">
    <title>JavaScript Basics</title>
  </head>
  <body>
    <script src="app.js"></script>
    consle.log ("begin Program");

  </body>
</html>
app.js
<!DOCTYPE HTML>
<html>
  <head>
    <meta charset="utf-8">
    <title>JavaScript Basics</title>
  </head>
  <body>
    <script src="app.js"></script>
consle.log("begin program");
  </body>

</html>

1 Answer

Hi Bryan!

This should work:

HTML:

<!DOCTYPE HTML>
<html>
  <head>
    <meta charset="utf-8">
    <title>JavaScript Basics</title>
  </head>
  <body>

    <!-- This should be the last thing before the closing body tag) -->
    <script src="app.js"></script>
  </body>
</html>

JavaScript (app.js)

consle.log ("begin Program");

I hope that helps.

Stay safe and happy coding!

Thanks you!!