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 (Retired) Introducing JavaScript Write Another Program

Help needed with basics of JavaScript

Add opening and closing script tags inside the body of the page.

index.html
<!DOCTYPE HTML>
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <title>JavaScript Basics</title>
</head>
<body>

</body>
</html>

1 Answer

Jennifer Nordell
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

Hi there, Zico! First, and foremost, I'd like to know what you've tried thus far that's failed. This would allow for me to better assist you in understanding what's going wrong, and ultimately, result in a better learning experience for you.

Also, I see by your profile that you haven't taken any HTML or CSS courses here on Treehouse. And while these are not strictly required to do JavaScript, having a working knowledge of HTML and CSS is only going to help you. The front end part of JavaScript is primarily devoted to manipulating elements in the DOM (document object model) and their styling which is done with CSS. If you have limited knowledge of these, JavaScript is going to be infinitely more difficult to learn. It would be a bit like trying to learn division before first learning addition, subtraction, and multiplication.

The body begins with the <body> tag and ends with the </body> tag. The challenge is asking you to place both the beginning and ending script tags inside the body tags. This means that the beginning script tag will come immediately after the <body> tag and the ending script tag will come immediately before the </body> tag.

The resulting section of code looks like this:

<body>
<script>
</script>
</body>

Hope this helps! :sparkles: