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 trialAllen Dean
5,702 PointsI need help with my code challenge project.
I added a script tag and src attribute to index.html. Not sure what to do next.
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>JavaScript Basics</title>
<script src="myJSfile.js"></script>
</head>
<body>
</body>
</html>
4 Answers
Mark Sebeck
Treehouse Moderator 37,905 PointsHi Allen. Your src needs to be the name of your js file. In this case it should be app.js and should be between the body tags.
Allen Dean
5,702 PointsMark I'm having a problem with challenge 2. I went to app.js added console.log with a quote and it didn't work.
Mark Sebeck
Treehouse Moderator 37,905 PointsIt should be console.log(βbegin programβ);
Allen Dean
5,702 PointsThanks again Mark!
Allen Dean
5,702 PointsHi Mark, I working on Challenge 2 of 3 (combine strings). It's not working for me. Do you have any input you can share with me?
let msg = 'Carlos' + ", " + 'Salgado:';
let role = msg + 'developer';
create a string: Carlos Salgado: developer.
Mark Sebeck
Treehouse Moderator 37,905 PointsHi Allen. Make sure you are using your variables. Something like
let msg = firstName + ' ' + ......
just continue with you other variable. make sure you do the spacing correct on the colon.
Allen Dean
5,702 PointsAllen Dean
5,702 PointsThanks Mark!