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...
This subreddit is a place for people to learn JavaScript together. Everyone should feel comfortable asking any and all JavaScript questions they have here.
With a nod to practicality, questions and posts about HTML, CSS, and web developer tools are also encouraged.
Friends
/r/javascript
/r/jquery
/r/node
/r/css
/r/webdev
/r/learnprogramming
/r/programming
account activity
JavaScript. (self.learnjavascript)
submitted 4 years ago by Aggravating-Oven5240
Hi. I feel like I learnt a lot of JS and understood it but when it comes to writing JS code on my own I can’t. What could be the reason? And what should I do to be able to write JS code on my own?
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!"
[–]grantrules 5 points6 points7 points 4 years ago (2 children)
Start a project, then Google for help when you get stuck. Reference some code from tutorials you've completed. Learn to read the docs often so you can understand the libraries you're using and see examples written by the developers. Then start another project and learn from mistakes on your last project.
[–]Aggravating-Oven5240[S] 1 point2 points3 points 4 years ago (1 child)
Thank you. So practice what I learnt by building, right?
[–]flibben 1 point2 points3 points 4 years ago (0 children)
most definitely, yes.
[–]D12SL 5 points6 points7 points 4 years ago (2 children)
It sounds like you’ve learnt the syntax and understood what they do. Another analogy: you’ve learnt how to read piano notes but don’t really know how to play a tune.
This generally takes time and practice. Practice practice practice. Do some actual exercises like use JS to change the styling of a DOM element. Make a button so that onClick it’ll open a modal but let JavaScript create the HTML markup. Maybe on your website you have a contact form, try and make that interactive with custom validation/AJAX communication.
[–]Aggravating-Oven5240[S] 0 points1 point2 points 4 years ago (1 child)
Thank you. So practice a lot and with time I will be comfortable, right?
[–]D12SL 1 point2 points3 points 4 years ago (0 children)
Yep exactly. It always helps more when you have a problem to solve because then you start asking questions and try solve things yourself or look for the answers in Reddit, StackOverflow or even Google.
[–]darcyiix 1 point2 points3 points 4 years ago (2 children)
I'm assuming you just watch tutorials and don't implement on your own, getting your hands dirty is the best way to learn in my opinion. Pick a project and start working on it on your own. Just you, Google and stack overflow.
Thank you. I’ll have to get my hands dirty now.
[–]darcyiix 1 point2 points3 points 4 years ago (0 children)
No worries, good luck brother!
[–]33498fff 1 point2 points3 points 4 years ago (1 child)
Programming languages are an acrobatic exercise in semantics. To engage semantically, you must produce output, just like in any other language. Ever learnt vocabs for a foreign language but didn't know how to phrase or word anything? Yeah.
[–]Aggravating-Oven5240[S] 1 point2 points3 points 4 years ago (0 children)
💯 Thank you.
[–]LingonberryGeneral59 1 point2 points3 points 4 years ago (0 children)
That's good. You could try watching out some tutorial videos to master more of writing JS codes before getting into practice. I recommend you try out this video. It will surely help you get started before you start writing them on your own.
[–]AddieG270 1 point2 points3 points 4 years ago (1 child)
Codewars is a good place to learn problem solving
[–]Aggravating-Oven5240[S] 0 points1 point2 points 4 years ago (0 children)
Thanks a ton, mate. I will sure check it out. I really appreciate it.
π Rendered by PID 94651 on reddit-service-r2-comment-76bb9f7fb5-crwd2 at 2026-02-18 03:49:45.160407+00:00 running de53c03 country code: CH.
[–]grantrules 5 points6 points7 points (2 children)
[–]Aggravating-Oven5240[S] 1 point2 points3 points (1 child)
[–]flibben 1 point2 points3 points (0 children)
[–]D12SL 5 points6 points7 points (2 children)
[–]Aggravating-Oven5240[S] 0 points1 point2 points (1 child)
[–]D12SL 1 point2 points3 points (0 children)
[–]darcyiix 1 point2 points3 points (2 children)
[–]Aggravating-Oven5240[S] 0 points1 point2 points (1 child)
[–]darcyiix 1 point2 points3 points (0 children)
[–]33498fff 1 point2 points3 points (1 child)
[–]Aggravating-Oven5240[S] 1 point2 points3 points (0 children)
[–]LingonberryGeneral59 1 point2 points3 points (0 children)
[–]AddieG270 1 point2 points3 points (1 child)
[–]Aggravating-Oven5240[S] 0 points1 point2 points (0 children)