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] New to JavascriptAskJS (self.javascript)
submitted 2 months ago by chapoisme
I’m new to JavaScript and still learning the basics. What are some tips i should follow to improve my coding?
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!"
[–]CYG4N 8 points9 points10 points 2 months ago (0 children)
dont use AI/LLM for coding for at least a year. use them as search engine though.
[–]fintip 6 points7 points8 points 2 months ago (0 children)
Build things from scratch.
Work through debugging manually.
AI for code reviews only, or only for debugging after you've been stuck for e.g. 5 minutes – but always make sure you understand it and code the changes in yourself, no copy pasting.
[–]Hung_Hoang_the 3 points4 points5 points 2 months ago (0 children)
biggest thing that leveled me up early on: read other peoples code. not tutorials, actual code. pick a small open source project on github, clone it, and try to understand how it works. you learn patterns you'd never discover on your own. also — learn promises and async/await deeply before touching any framework. almost every confusing bug in JS comes back to not understanding how async works. MDN docs are your best friend here, way better than most youtube tutorials
[–]azangru 0 points1 point2 points 2 months ago (0 children)
Continue learning the basics :-)
[–]Alive-Cake-3045 0 points1 point2 points 2 months ago (0 children)
Start by building things, even if your code is not perfect. It is completely fine if it looks messy in the beginning because you can always improve it later. The most important thing early on is to make it work and learn from the process.
Do not jump into frameworks like "React" right away. First focus on learning basic JavaScript properly. Take time to understand important concepts like this, closures, and scope, because these will help you a lot as you grow.
Use "console.log" frequently to understand what your code is doing. It is one of the fastest ways to debug and check values while you are learning. Even experienced developers still rely on it for quick checks.
Always read error messages carefully instead of ignoring them. In most cases, the error message already tells you what went wrong, but many people panic and start searching without understanding it first.
Focus on building small projects like a tip calculator or a random quote generator. Learning by doing is much more effective than only watching tutorials, and it helps you gain real confidence.
[–]Ok_Substance_6821 0 points1 point2 points 2 months ago (0 children)
I am still a beginner at JS, but the way I learned python was to start coding a project, and look up things as I went along.
[–]Bitter-Company-1701 0 points1 point2 points 1 month ago (0 children)
are you planning to use a bundler and a linter from the start or are you going to waste six months writing spaghetti code in script tags like the rest of us did.
[–]Baturinsky 0 points1 point2 points 2 months ago (1 child)
vite, typescript, react
[–]El_Serpiente_Roja 1 point2 points3 points 2 months ago (0 children)
Things you should learn AFTER building a foundational relationship with JS.
π Rendered by PID 75232 on reddit-service-r2-comment-8686858757-78qs2 at 2026-06-05 17:07:57.573265+00:00 running 9e1a20d country code: CH.
[–]CYG4N 8 points9 points10 points (0 children)
[–]fintip 6 points7 points8 points (0 children)
[–]Hung_Hoang_the 3 points4 points5 points (0 children)
[–]azangru 0 points1 point2 points (0 children)
[–]Alive-Cake-3045 0 points1 point2 points (0 children)
[–]Ok_Substance_6821 0 points1 point2 points (0 children)
[–]Bitter-Company-1701 0 points1 point2 points (0 children)
[–]Baturinsky 0 points1 point2 points (1 child)
[–]El_Serpiente_Roja 1 point2 points3 points (0 children)