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 trial

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.

index.html
<!DOCTYPE HTML>
<html>
  <head>
    <meta charset="utf-8">
    <title>JavaScript Basics</title>
    <script src="myJSfile.js"></script>
  </head>
  <body>

  </body>
</html>
app.js

4 Answers

Mark Sebeck
MOD
Mark Sebeck
Treehouse Moderator 38,304 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 38,304 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 38,304 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.