JavaScript JavaScript Basics (Retired) Storing and Tracking Information with Variables Capturing Visitor Input and Writing It to the Page

Use the document.write() method to write the variable answer to the page.

please help me

var answer = prompt ("What day is it?");
documant.write (answer);
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <title>JavaScript Basics</title>
<script src="scripts.js"></script>

1 Answer

Hey Brandon, you're very close.

Two small things:

  1. You've misspelled document as 'documant'

  2. There should be no space between function names and the parentheses

var answer = prompt("What day is it?");

Happy coding!