JavaScript JavaScript Basics (Retired) Introducing JavaScript Your First JavaScript Program

This is the answer I got from the lecture ``` document.write("<h1>Welcome to my site</h1>"); ```

I don't know how else to find the answer other than by following the lecture

  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <title>JavaScript Basics</title>


// document.write("<h1>Welcome to my site</h1>");



2 Answers

Shandale Shelton
Shandale Shelton
7,424 Points

Hi will,

Looks like you have h1 tags in there. Remove those form the code as the browser thinks you are printing it to the screen. also the double slash in the beginning because it will comment the code out.

hope this helps!