Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

JavaScript JavaScript Basics Hello, JavaScript! Write JavaScript Statements

I need help with my code challenge project.

I added a script tag and src attribute to index.html. Not sure what to do next.

    <meta charset="utf-8">
    <title>JavaScript Basics</title>
    <script src="myJSfile.js"></script>


4 Answers

Mark Sebeck
Mark Sebeck
Treehouse Moderator 30,397 Points

Hi 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.

Thanks Mark!

Mark 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
Mark Sebeck
Treehouse Moderator 30,397 Points

It should be console.log(“begin program”);

Thanks again Mark!

Hi 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
Mark Sebeck
Treehouse Moderator 30,397 Points

Hi 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.