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

how to resolve the challenge task please spend already hours on it and still no results.

index.html
<!DOCTYPE HTML>
<html>
  <head>
    <meta charset="Hey Friend!">
    <coding>JavaScript Basics</script>
  </head>
  <("Welcome to my web page!");>

    </("Here we are creating"</h1>)>
</html>
app.js
alert("Hello Friends!");
console.log("learning is fun"),
Document.write("h1").Thanks for visiting!

1 Answer

Steven Parker
Steven Parker
231,271 Points

Here's a few hints:

  • you'll be adding to and not changing what is provided, but the "title" tags were changed
  • the changed opening and closing tags don't match ("<coding>" and "</script>")
  • also, "coding" is not a valid HTML tag name
  • task 1 asks you to add code inside the <body> element, but the body element seems to have been removed!
  • to complete task 1, you'll need to add <script> tags with the proper syntax inside the <body> area