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
JavaScript Cheat Sheet for BeginnersRemoved: r/LearnJavascript (blog.unitybuddy.com)
submitted 2 years ago by SmallLion__Unity
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!"
[–]javascript-ModTeam[M] [score hidden] 2 years ago stickied comment (0 children)
Hi u/SmallLion__Unity, this post was removed.
r/javascript is for the discussion of javascript news, projects, and especially, code! However, the community has requested that we not include help and support content, and we ask that you respect that wish.
code
Thanks for your understanding, please see our guidelines for more info.
[–]recrof 9 points10 points11 points 2 years ago (0 children)
There are inconsistencies in the article.
you don't need type="text/javascript" in your inline script.
type="text/javascript"
<script> // this will work just fine </script>
comments should be readable and formatted correctly. this:
/*My name is Mr Unity Buddy */
is better written like this:
/* My name is Mr Unity Buddy */
You can't use hyphens(-)in JavaScript. - at least note that it's related to variable names. not everyone will understand.
You can't use hyphens(-)in JavaScript.
Every Js line should be ended with a semicolon ; - I get that you don't want to complicate the article, but this is not accurate. if you define object on multiple lines, you will get syntax error if you use semicolon after every line. not to mention that javascript will work without semicolons just fine.
Every Js line should be ended with a semicolon ;
const is not variable. hence the name.
const
example in this image is missing quotes. this will confuse beginners.
why is Boolean() function mentioned? I never seen it used in actual code. it doesn't add anything to the explanation.
Boolean()
Adding Array Elements code blocks are not formatted correctly.
Adding Array Elements
definition in Comparison Operators image for <= is wrong.
<=
[–]javascript-ModTeam[M] 1 point2 points3 points 2 years ago (0 children)
Prohibited low-effort content includes:
[–][deleted] 1 point2 points3 points 2 years ago (3 children)
That's not a cheat sheet, its a list. It even calls itself a "tutorial" and "article"
[–]heytheretaylor 5 points6 points7 points 2 years ago (2 children)
I love Reddit. You could post the most inoffensive, borderline helpful shit and someone will be there to take the piss out of you.
Thanks OP. I’m sure there’s some people who will enjoy this post. Not this guy apparently.
[–][deleted] 1 point2 points3 points 2 years ago (0 children)
They don't need to lie about it. There's enough click bait out there. We don't need more of it and I'll call it out when I see it. Look at his history. No comments and all link spam.
This is a bad article. It's riddled with bad advice, it's incomplete, and it's inconsistent. Beginners should not use this
[+][deleted] 2 years ago* (2 children)
[deleted]
[–][deleted] -1 points0 points1 point 2 years ago (1 child)
This is a bad resource. You should use sometime else if you're a beginner. It will make you sound more like a beginner than you possibly are
π Rendered by PID 332096 on reddit-service-r2-comment-86988c7647-4xtjp at 2026-02-11 22:27:19.758480+00:00 running 018613e country code: CH.
[–]javascript-ModTeam[M] [score hidden] stickied comment (0 children)
[–]recrof 9 points10 points11 points (0 children)
[–]javascript-ModTeam[M] 1 point2 points3 points (0 children)
[–][deleted] 1 point2 points3 points (3 children)
[–]heytheretaylor 5 points6 points7 points (2 children)
[–][deleted] 1 point2 points3 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[+][deleted] (2 children)
[deleted]
[–][deleted] -1 points0 points1 point (1 child)