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 trialMICHAEL P
5,191 PointsKeeps getting different prompt than what I am supposed to have in the video. Please help!
I keep getting a different prompt than what I am supposed to have in the video. Please help!
The incorrect prompt that I keep on getting is: "Can you fix this Javascript"?
var passphrase = 'Hi'; console.log(passphrase.length);
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <link rel="stylesheet" href="css/main.css"> <title>Using the prompt method?</title> </head> <body> <div class="container"> <script src="scripts.js"></script> </div> </body> </html>
Steve Linn
11,841 PointsSteve Linn
11,841 PointsMichael,
Are you trying to get a prompt or log to the console?
if you are trying to log to the console this is correct
you can test this by opening dev tools on your browser - going to console and entering in each line - it works!
if you are trying to enter something into a prompt you need to call prompt
hope that points you in the right direction! cheers