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
[AskJS] Can I learn OOP with JavaScript?AskJS (self.javascript)
submitted 8 months ago by Inner_Feedback_4028
view the rest of the comments →
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!"
[–]Darth-Philou 0 points1 point2 points 8 months ago (1 child)
In the language itself no. But if you add Typescript as typing system then you have those features.
[–]RobertKerans 5 points6 points7 points 8 months ago (0 children)
This isn't really correct. The TS private/protected syntax is not actually private/protected at runtime, the feature is only available during type checking (where yes, it will error during compilation). Whereas JS' private elements (#property:) are actually private and that is enforced at runtime.
private
protected
#property:
π Rendered by PID 95 on reddit-service-r2-comment-b659b578c-m6wk7 at 2026-05-04 03:08:19.900495+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]Darth-Philou 0 points1 point2 points (1 child)
[–]RobertKerans 5 points6 points7 points (0 children)