r/learnjavascript • • 2d ago

Advanced javascript?

So i am a student whom enjoys making various small projects in free time with few languages but i have been wondering, as i have used javascript to make few static websites, and programs since it was very interesting to try and as javascript has a lot of built in functions and elements that allow various ways to solve problems, is there a way to make desktop applications using javascript and how precisely? Please explain, even a hint would be useful

11 Upvotes

26 comments sorted by

View all comments

8

u/Dazzling_Music_2411 2d ago

The whole point of using JavaScript is to take advantage of its wonderful graphics capabilities IN THE BROWSER. IOW, JS "desktop" applications are just web pages. You have probably seen loads of them, even if you didn't realize it at the time. Spreadsheets, language IDEs, games, graphics programs like Desmos. etc. etc...

The Web pages don't have to run on the WWW. They can be served locally from your own computer if you wish.

Using Javascript only as a backend, as others have said, won't allow you to make impressive displays, although, of course, you can still use it for normal computing - it just won't look like much.

5

u/otheyhigh 2d ago

I agree. Continue building applications for the browser. The browser engines have a lot of capabilities exposed as APIs. Quite a few local system relevant APIs as well. Like USB, Files etc. (most are limited but would be fine for local apps)

If you end up with a use case that needs capabilities just not possible through the browser APIs, then start exploring things like electron.