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

scott Walker
scott Walker
1,968 Points

Calling the function? am i misunderstanding the question? keeps saying it failed to call the function

<!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>

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

John Cotter
John Cotter
2,488 Points

Take out the // and should work