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 trialROHIT SAI CHETLA
219 Pointschallenge of task 1 in java script basics
I'm new to this someone help please
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JavaScript Basics</title>
</head>
<body>
</body>
<script>
// "welcome to my site"
</script>
</html>
1 Answer
Christopher Debove
Courses Plus Student 18,373 PointsHello.
The characters "//" are starting a comment meaning that everything on this line after is a comment. What is a comment ? It's a section of code not interpreted by the language. They are "notes" for the developper
Next point. In the course we saw that the function which write something on the page is document.write
So inside your script tag you need to call this function, like this :
// Write your code here
document.write("Write what you want");
This sample of code, if put between the script tags, will display "Write what you want" on the page. The challenge task tells you which string to write on the page =) You just need to replace mine by the one in the challenge