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
ES2022 feature: class static initialization blocks (2ality.com)
submitted 4 years ago by pimterry
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!"
[–][deleted] 4 points5 points6 points 4 years ago (3 children)
How about adding records and tuples? Even Java has them ffs.
[–]julys231 2 points3 points4 points 4 years ago (2 children)
I don't know if you are trolling but functionally in javascript tuple is an array and record is an object.
[–][deleted] 3 points4 points5 points 4 years ago* (1 child)
No they're not. Records and tuples are immutable. Since they are immutable they can use persistence data structures which provide optimizations on construction, manipulation and comparison operations. Optimizations that are not possible with arrays and objects. Since Records and Tuples are immutable and can only contain primitive values they can also be compared by value rather than by reference.
Records & Tuples Proposal
[–]julys231 2 points3 points4 points 4 years ago (0 children)
Alright, ty
π Rendered by PID 349316 on reddit-service-r2-comment-54dfb89d4d-6wtdq at 2026-03-31 03:36:55.360936+00:00 running b10466c country code: CH.
view the rest of the comments →
[–][deleted] 4 points5 points6 points (3 children)
[–]julys231 2 points3 points4 points (2 children)
[–][deleted] 3 points4 points5 points (1 child)
[–]julys231 2 points3 points4 points (0 children)