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 trialIoana Raluca Darie
3,540 Pointssistem 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
var answer = prompt("what day is it");
<!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
elk6
22,916 PointsHi 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
3,540 Pointsnop... i changed the w in W and i keep receiving the same message :|
elk6
22,916 PointsI would read the answer again, i said a capital w and a question mark. I even posted the code to use. ;)
Ioana Raluca Darie
3,540 Pointsk ... got it sorry :D
elk6
22,916 PointsNo problem. Happy to help. Good luck with the rest of the course. :)
Ioana Raluca Darie
3,540 Pointsthe 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.
elk6
22,916 PointsWell, he's right. :)
No need to feel sorry. Here to help.