Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

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

Ioana Raluca Darie
Ioana Raluca Darie
3,540 Points

sistem failure ? or what ?

the correct answer is

var answer = prompt ( "what day is it ")

but i keep receiving the message : Bummer! You didn't put 'What day is it? in the prompt() function. ..

please help :d

scripts.js
var answer = prompt("what day is it");
index.html
<!DOCTYPE HTML>
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <title>JavaScript Basics</title>
</head>
<body>
<script src="scripts.js"></script>
</body>
</html>

4 Answers

Hi Loana,

You forgot a question mark and the w of "what" should be a capital letter.

Like this:

var answer = prompt("What day is it?");
Ioana Raluca Darie
Ioana Raluca Darie
3,540 Points

nop... i changed the w in W and i keep receiving the same message :|

I would read the answer again, i said a capital w and a question mark. I even posted the code to use. ;)

No problem. Happy to help. Good luck with the rest of the course. :)

Ioana Raluca Darie
Ioana Raluca Darie
3,540 Points

the teacher at the beginning of the JavaScript course said that you learn best from your mistakes... this is how it is , happend to me and i am sure it will not be the last time .

sorry to bother you and thanks for your answer.

Well, he's right. :)

No need to feel sorry. Here to help.