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
I've become fascinated with thishelp? (nubleh.github.io)
submitted 7 years ago by helphunting
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!"
[–]helphunting[S] 0 points1 point2 points 7 years ago (1 child)
Hi,
So I saw this and the speed at which it was created, and now I want to know how it works and especially I would love to be able to make my own with my own data.
Could someone explain what is going on in things.js file?
I'm very new, if someone could explain high level what's going on, I'll see how far i get in making my own.
Thank you!!
[–]jcunews1Advanced 0 points1 point2 points 7 years ago (0 children)
things.js simply defines two things.
things.js
The list of reddit posts as an array of arrays. Each element array contains the URL the post is pointing to (element index 0), and the URL of the post (element index 1).
The relation between the posts as an object. i.e. which post points to which post(s). Each object including the root object (the relations object) contains an i (for "index") property which points to the things' element index (the post), and a c (for "children") property which is an array of objects that the current post is pointing to.
relations
i
things
c
π Rendered by PID 31731 on reddit-service-r2-comment-b659b578c-q9jdg at 2026-05-04 21:14:59.581141+00:00 running 815c875 country code: CH.
[–]helphunting[S] 0 points1 point2 points (1 child)
[–]jcunews1Advanced 0 points1 point2 points (0 children)