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

Adam Maley
Adam Maley
5,946 Points

Can you make a game with JavaScript, that works without using an internet browser?

So it opens it's own "Application" like a real game on App Store or on Steam ect...

2 Answers

Steven Parker
Steven Parker
229,657 Points

You can use the node.js engine to run JavaScript without a browser, but it doesn't create executable apps. There are several classes for it in the Library here.

There are some experimental compilers around to make JavaScript into a stand-alone executable, with names like "pkg", "nexe" and "node-compiler". Look them up if you want to play around with one or more of them, but these are probably not things to rely on to build stable apps for distribution (and certainly not commercially).

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

Hi there, Adam! In addition to the answer left above, I'd like to point out that apps made in Unity can also be programmed using JavaScript. That being said, I'm given to understand that most people developing in Unity tend to use C#. But either are a viable option. So yes, it is possible to use JavaScript and make a standalone app. You can take a look at some examples made in Unity but it would be hard to know which are made using C# and which are made using JavaScript.

Hope this helps! :sparkles: