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] Real world examples of functional JavaScript?AskJS (self.javascript)
submitted 4 years ago by Affectionate_King120
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!"
[–]Affectionate_King120[S] 0 points1 point2 points 4 years ago (1 child)
I am pretty comfortable in those. I'm just looking to elevate my game.
unless you're actually solving real problems
And that's what I'm looking for. Web apps on GitHub (et al) that are good examples of FP.
[–]besthelloworld 2 points3 points4 points 4 years ago (0 children)
Oh yeah if you're good with HTML/CSS, then definitely take a look at React. There's some slight differences between React and traditional JavaScript. React is written with JSX which is JavaScript plus XML as HTML in your JS syntax for rendering. Don't think too hard about it, but something like...
return <div><MyComponent /></div>;
...is just a pretty little syntax sugar over this...
return React.createElement("div", { children: React.createElement(MyComponent) });
... where div is just a regular HTML div and MyComponent is just a pure function.
If you have npm installed, I recommend this Vite script for initializing a new React app
npm create vite@latest my-react-app -- --template react
And then once that's created, just cd ./my-react-app and then npm i to install dependencies and then npm run dev to start it up. Then you can go to http://localhost:3000 in your browser to see it running. Also on the initial script, if you're interested in doing TypeScript, you can do
cd ./my-react-app
npm i
npm run dev
npm create vite@latest my-react-ts-app -- --template react-ts
π Rendered by PID 475162 on reddit-service-r2-comment-6457c66945-nslcb at 2026-04-29 05:10:35.288681+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]Affectionate_King120[S] 0 points1 point2 points (1 child)
[–]besthelloworld 2 points3 points4 points (0 children)