JavaScript JavaScript Basics Introducing JavaScript Your First JavaScript Program

Lauren Allred
Lauren Allred
169 Points

trying to figure out what this first challenge wants me to do

not sure what is needed for the challenge

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


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



1 Answer

Matthew Long
Matthew Long
26,106 Points

It's wanting you to use the write() method on the document:

document.write("Welcome to my site");