Welcome to the Treehouse Community
Looking to learn something new?
Taylor Han3,701 Points
src link not in red?
I cannot the first line:
var firstName = prompt(what is your first name?) ;
to pop up when I run the preview, and I don't want to keep building it if its already not working. I cannot figure out what is wrong, but my source variable in the html file is in blue and not red. Does that matter? I cannot get it to change and that is how it looks in the video so I'm thinking that the .js is not properly linked to the html, but cannot be sure.
Thanks in advance!
The prompt method accepts a string as the first argument, to form one you add either single or double quotes around the text to display. Doing this informs the browser and syntax-highlighter that this is one pieces of data. Now the string should be displayed in the source in one color.
var firstName = prompt("what is your first name?") ;
Hope this helps;