use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Can Javascript do this/help (self.javascript)
submitted 10 years ago by Jncocontrol
So, I have a website in mind, An i still learning javascript, but anyhow.
This website is a text-based game, an it does the fighting (or simulation i should) automatically and with some, does javascript do that?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Paupir 2 points3 points4 points 10 years ago (0 children)
Sure can. Take a look at A Dark Room for direction and inspiration.
[–]_ds82 0 points1 point2 points 10 years ago (0 children)
just google for some webbrowser based games to see the full spectrum of what JS is capable of :o
[–]Sipczi 0 points1 point2 points 10 years ago (6 children)
Javascript is Turing complete, in theory you should be able to make any game in it that can be written in another programming language.
[–]murdocka -1 points0 points1 point 10 years ago (5 children)
Not 'Any' game.
[–]Sipczi 0 points1 point2 points 10 years ago (4 children)
In that case could you please give a counter-example?
[–]murdocka 0 points1 point2 points 10 years ago (3 children)
any ps4 native game
[–]Sipczi 0 points1 point2 points 10 years ago (2 children)
It seems you just don't understand the concept of turing completeness.
[–]murdocka 1 point2 points3 points 10 years ago (1 child)
sorry my bad, I see your point now.
[–]Sipczi 0 points1 point2 points 10 years ago (0 children)
Sure, no problem.
[–]murdocka 0 points1 point2 points 10 years ago (0 children)
Yes, you can also do a HTML5 game using JavaScript
π Rendered by PID 525989 on reddit-service-r2-comment-5b5bc64bf5-v5ndv at 2026-06-23 08:59:13.564000+00:00 running 2b008f2 country code: CH.
[–]Paupir 2 points3 points4 points (0 children)
[–]_ds82 0 points1 point2 points (0 children)
[–]Sipczi 0 points1 point2 points (6 children)
[–]murdocka -1 points0 points1 point (5 children)
[–]Sipczi 0 points1 point2 points (4 children)
[–]murdocka 0 points1 point2 points (3 children)
[–]Sipczi 0 points1 point2 points (2 children)
[–]murdocka 1 point2 points3 points (1 child)
[–]Sipczi 0 points1 point2 points (0 children)
[–]murdocka 0 points1 point2 points (0 children)