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 Introduction to Programming Basics Writing Your Program

Farhan Khan
Farhan Khan
17,530 Points

local host on window

Why does localhost (XXAMP) not execute .js files in Chrome's development tool? I know its a client side but can I run it on localhost?

Thas Eagans
Thas Eagans
Courses Plus Student 2,533 Points

You are aware that Javascript is client side right? It's executed by the browser. You don't need to run Javascript on a server. Unless I'm misunderstanding your question. If so, my apology.

</TREagans>

1 Answer

Ricky Catron
Ricky Catron
13,023 Points

If your JavaScript is not running it is not because of XXamp. If your trying to use Node or some kind of JavaScript backend then XXamp is not what you want. Else I would check your links to the files. It should not run any different on localhost then on a website.

Goodluck! --Ricky