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 trialJoel Benitez
1,643 PointsDoes not display
Hi,
I can not see my js circles displayed on the screen like on the video.
below is my html code: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Circles</title> <link rel="stylesheet" href="css/styles.css"> </head> <body id="color">
<script src="js/script.js"></script> </body> </html>
JS:
var html = '';
<div> 1 </div>
for (var i = 1; i <= 10; i +=1) { html += '<div>' + i + '</div>'; } document.write(html);
3 Answers
Alisa Trunczik
3,659 PointsTry to delete "js/" here in html:
<script src="js/script.js"></script>
Worked for me=)
Joel Benitez
1,643 PointsThat worked. Thanks
Ben Berning
31,784 PointsI had the same problem. Either remove the "js/" from the html or move the script.js file into the js folder.
ducarmont
30,575 Pointsducarmont
30,575 PointsThat's your html code? or your JS code? If anything you're just going to write the numbers 1-10 to the doc. Maybe you could reformat the code in your question using the markdown cheatsheet below the text box?
It's hard to see what's going on.