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

which statement helps write welcome to my site

how do i write welcome to my site using java script

index.html
<!DOCTYPE HTML>
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <title>JavaScript Basics</title>
</head>

<body>
</body>

<script>
document.write "welcome to my site"

</script>

</html>

1 Answer

You would need parentheses around the string to create a function

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