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![](https://ecs-static.teamtreehouse.com/assets/views/marketing/shared/community-banner-white-47072046c51352fe6a69f5e691ff5700b28bb11d45197d7bdf066d9ea3f72d0c.webp)
![Scott George](https://uploads.teamtreehouse.com/production/profile-photos/9736452/micro_IMG_3340.jpg)
Scott George
19,060 PointsBasic practice code; Chrome Console not working
My code is not working in Chrome. Using VS Code The HTML code:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge">
<script src="JavaScript.js"></script>
<title>Document</title>
</head> <body> <script src="JavaScript.js"></script> </body> <html>
And the Javascript:
var hello = "Hello";
console.write("Hello");
3 Answers
![Scott George](https://uploads.teamtreehouse.com/production/profile-photos/9736452/micro_IMG_3340.jpg)
Scott George
19,060 PointsDOH'! Yeah, very bad over sight on my part, I forgot about the file/folder liking code. Once I put in the correct code "<script type ="text/javascript" src ="js/js.js"/>" Every thing works as it should. TA'DA!! Thanks again for the help :)
![Mike Hatch](https://uploads.teamtreehouse.com/production/profile-photos/9582832/micro_ober-cheaver.jpg)
Mike Hatch
14,940 PointsYou're welcome. It's a battle.
![Steven Parker](https://uploads.teamtreehouse.com/production/profile-photos/969492/micro_tool_chess_set_2.jpg)
Steven Parker
230,688 PointsAs Mike pointed out, there's no "console.write" function. But there are "document.write" and "console.log" functions.
The choice depends on what you want to do. The "document.write" will put the output onto the browser page, and "console.log" will show it in the JavaScript console.
![Scott George](https://uploads.teamtreehouse.com/production/profile-photos/9736452/micro_IMG_3340.jpg)
Scott George
19,060 PointsThanks guys! I just got it, I was not connecting the external JS file correctly. Just a simple oversight, I believe. And the wrong placement of the document.write, and console.log parts. Ooopsie! :) Thanks again for the help. :) Steven Parker and Mike Hatch
Mike Hatch
14,940 PointsMike Hatch
14,940 PointsDo you understand the error message that Google Console gives you?
What that tells you is the code that needs to be fixed is "write". I've a feeling you meant "document.write" or "console.log" instead.