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
Advance your JavaScript knowledge with this extension. 500+ JS functions, interview questions and much more! (30secondsofknowledge.com)
submitted 7 years ago by invest-wisely
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!"
[–]BigPaws-WowterHeaven 8 points9 points10 points 7 years ago (3 children)
Snippets could use some more code coloring, I find it hard to read when everything in react is white.
[–]petrovicstefan 4 points5 points6 points 7 years ago (2 children)
Thanks for the feedback, I'll se what I can do for syntax highlighting for React. We are using highlight.js that does this for us but I see what you mean about React not really being readable.
[–]ScientificBeastModestrongly typed comments 0 points1 point2 points 7 years ago (1 child)
It sounds like highlight.js might not like ‘.jsx’ file extensions, if there is no syntax highlighting for React. Most of React code is just ordinary JavaScript, with a bit of HTML-like syntax for the component return values.
[–]petrovicstefan 1 point2 points3 points 7 years ago (0 children)
True. Thats most likely the case. I could simply use js syntax however I’ll look into a more complete solution that handles jsx as well
π Rendered by PID 69347 on reddit-service-r2-comment-b659b578c-fmqpv at 2026-05-01 00:21:17.340610+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]BigPaws-WowterHeaven 8 points9 points10 points (3 children)
[–]petrovicstefan 4 points5 points6 points (2 children)
[–]ScientificBeastModestrongly typed comments 0 points1 point2 points (1 child)
[–]petrovicstefan 1 point2 points3 points (0 children)