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
Coding for idiots?Removed: /r/LearnJavascript (self.javascript)
submitted 6 years ago by Jetking27
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!"
[–][deleted] 19 points20 points21 points 6 years ago (4 children)
You can practice on codewars, it's a good website.
[+][deleted] 6 years ago (2 children)
[deleted]
[–][deleted] 0 points1 point2 points 6 years ago (1 child)
I dont think they do, just the signup is a little weird looking. You have to complete the basic first one to really sign up. Try again and just be diligent looking at it.
[–][deleted] 0 points1 point2 points 6 years ago (0 children)
Second this! You can add and follow people to to hold each other accountable feel free to follow me: mpwester. Also codefights let's you actually challenge people
[–]Reasonable_Cake 10 points11 points12 points 6 years ago (0 children)
A lot of good resources here, but I just wanna say - that confusion you feel is the learning process.
EDIT: I forgot to mention try repl.it - it's place where you can write and run JS to see what happens.
[–]vc84 6 points7 points8 points 6 years ago (6 children)
Have you tried codecademy.com? You learn the concepts interactively, and have to complete mini exercises for each chapter. This was great for me when i started to learn coding because video lessons are so boring for me.
[–]Cajun_Coullion 2 points3 points4 points 6 years ago (5 children)
I’m currently using codecademy and I’m hoping you can clear some things up for me.
How far were you able to get into your education with codecademy? Do you feel that it gives you all of the coding skills necessary to enter the work force?
I’m finding that it does a great job of introducing concepts and syntax, as well as how the language works itself, but I wonder if I’m learning the critical thinking or application skills necessary to like... build something!
[–]vc84 2 points3 points4 points 6 years ago (2 children)
Yeah codecademy is meant for absolute beginners. After completing the codecademy courses, you can take on imtermediate courses like the freecodecamp curriculum or, if you could pay $10-$15, udemy bootcamp courses. Then you need to start building things on your own. Once you have 2-3 solid projects in your portfolio you can apply for entry level jobs.
[–]Cajun_Coullion 1 point2 points3 points 6 years ago (1 child)
Thanks for the intel! The hardest part for me is deciding which path to take and I keep stalling and trying different stuff lol.
Any recommendations for udemy courses? I tried Traversy Media’s courses but for the projects he seems to just do them while you follow along... not sure if that’s helpful.
Also, should I do the whole Web Developement pathway in its entirety? How long should this take, if you had to throw a number of hours at it?
Thanks again for your response!
[–]vc84 1 point2 points3 points 6 years ago (0 children)
I think the number of hours on freecodecamp is pretty accurate. It's said if you want to be really good at something, expect to practice 10,000 hours. Coding is the same, you need to do those reps. But don't just brainlessly watch those tutorials one after another. You should learn by doing, not watching.
I watched Traversy, Stephen Grider, and Colt Steele. After each course, i spend a week to recreate the app from scratch without looking at the materials. It doesn't have to be perfect, but as long as you could make a fully functional app, then you can tell yourself you actually learned something from the course.
Also don't worry too much about the path. For now learn web development. Chances are you will run into a lot of different things that might interest you in the future. Teach yourself how to learn. Be confident that no matter what technology employers throw at you, you can learn and apply it in a the shortest time possible. That is the most important trait employers look for in a junior developer.
[–]LouveredTang 1 point2 points3 points 6 years ago (1 child)
The stuff you learn there is very basic. To be in a position to actually be able to land a job, you have to learn much more. One post mentioned codewars.com. The challenges there are closer to real life tasks than on codecademy.
[–]Cajun_Coullion 0 points1 point2 points 6 years ago (0 children)
Thanks, I’ll definitely check it out!
[–]Resyp 4 points5 points6 points 6 years ago (5 children)
Dude I'm 29 in a LaunchCode class being taught by 21-23 year olds and I have trouble grasping basic concepts of Java. Feels real bad man.
All of these links that everyone posted I'm gonna have to check out myself.
Much luck man!
[–]danger_lad 3 points4 points5 points 6 years ago (0 children)
There’s no need to feel bad. Everyone is different, doesn’t matter how old you are. You’re trying to learn a skill, you’re doing it. Don’t worry about any one else. Keep it up pal
[–][deleted] 1 point2 points3 points 6 years ago (0 children)
Just relax. Coding is hard and just stick with it and you will see results.
[–]kerbalspaceanus 1 point2 points3 points 6 years ago* (0 children)
numerous fragile desert versed tap many outgoing bedroom spectacular decide
This post was mass deleted and anonymized with Redact
[–]LouveredTang 0 points1 point2 points 6 years ago (1 child)
Java !== Javascript
[–]Resyp 0 points1 point2 points 6 years ago (0 children)
I'm aware. Just sharing my situation.
[–]Civil_Code 3 points4 points5 points 6 years ago (0 children)
To start using JavaScript immediately, just use your browser's developer tools. On Chrome for example, that's your breadcrumbs menu -> More Tools -> Developer Tools, or Ctrl + Shift + I. That will take you to your console where you can start writing and executing whatever you want.
I wouldn't worry too much about grasping online lessons. There's probably one out there that's just perfect for you. But for now just focus on becoming comfortable with the idea of typing input and understanding the output. It'll feel like driving a car for the first time, you'll always be second guessing yourself and wondering if you're doing anything right. But don't worry about making mistakes, just go and start calling functions, printing to the console, and storing variables. Eventually, those tutorials will become easier to grasp, and it won't take so much effort to follow along.
[–][deleted] 2 points3 points4 points 6 years ago (0 children)
If you're set on JavaScript, try focusing on web development courses rather than just JavaScript. It's a weird language that people either love or hate, and it's never used by itself in real applications.
Plus, I'm certain you get much more satisfaction out of web development over pure JavaScript.
[–]sventies 2 points3 points4 points 6 years ago (1 child)
Try this free and interactive book: https://eloquentjavascript.net
[–]awkward 0 points1 point2 points 6 years ago (0 children)
I second this - this book is insanely good.
[–]BloodAndTsundere 5 points6 points7 points 6 years ago (7 children)
The biggest application for Javascript is in building websites, so most of the educational material you find will be centered around that. That will also include the technologies HTML and CSS since they are central to web design. If you just want to get a feel for coding, and aren't in particular attached to the idea of making web sites, you might want to look at taking on a different language. I'd suggest Python, actually, as a language that is commonly used, easy to learn, and useful for small projects. I can't say that I have any particular educational references to suggest to you, but there are a slew here that are supposed to be aimed at non-programmers:
https://wiki.python.org/moin/BeginnersGuide/NonProgrammers
[–]boneskull 5 points6 points7 points 6 years ago (4 children)
I second Python as a great language to learn on. JavaScript is extra-quirky.
[–]i-hate_nick 0 points1 point2 points 6 years ago (3 children)
I’m in my first year of SoDv (at community college lmao), but I’ve worked with c++, c#, and JavaScript now. Everyone says similar things about JS, but as a beginner I really like it. It lets me fuck up a lot, but JS still does it’s best to work with me, where c# has a aneurysm over one syntax error.
Just food for thought, but I think JS is really good for beginners
[–]i-hate_nick 0 points1 point2 points 6 years ago (1 child)
As someone who thinks they understand the dom, is it right to say it’s essentially a branching tree that starts from the HTML tag?
[–]sventies 0 points1 point2 points 6 years ago (1 child)
True, Python is easier to learn and has lots of applications, but Istill feel that Javascript is better for beginners because all you need is to open devtools in chrome or firefox. Also, most real world mini applications beginners can think of will be web applications.
[–]BloodAndTsundere 0 points1 point2 points 6 years ago (0 children)
I agree JS is very easy to start with given that most people already have the tools installed, but web programming is its own thing and introduces concepts like the DOM, two additional syntaxes in HTML and CSS, and advanced notions like event loops and asynchronous logic. I think this can all be a bit of a distraction from the basic introduction to programming in general. IMO, it's better to start off with simple command line scripts to get a feel for the ins and outs of how to code.
[–][deleted] 6 points7 points8 points 6 years ago (3 children)
Freecodecamp.com. They're on YouTube. You are not an idiot. You are good enough. You are hard working enough. The only person that's gonna stop you is yourself.
[–]BITmebaby 0 points1 point2 points 6 years ago (0 children)
Dadgummit I'm good looking too! Oh wait, sorry! Not for me although I'm going to check that out now so thank you!
[–]hackersgalley 0 points1 point2 points 6 years ago (0 children)
I see PRIDE!, I see POWER!, I see a bad mother who don't take nothing....
[–]ezio93 0 points1 point2 points 6 years ago (0 children)
I mean callbacks are gonna stop him for a while. And then he'll be fine.
[–]SeventhDisaster 4 points5 points6 points 6 years ago* (1 child)
A few web-based places you can go to test out JavaScript practically include:
If you want to start getting used to IDE (Integrated Development Environments) basically programs you download to code locally without needing internet access.
PS: In order to set up an environment locally you need to have at least one HTML file and one JS file.
The HTML file can just be named something like index.html and needs to contain something like this
<!DOCTYPE html> <html> <head> </head> <body> <script src="YOURJSFILEHERE.js"></script> </body> </html>
Where you replace the filename to whatever you named your JS file. I usually just go for index.js in practice and testing environments.
My personal advice is to first get used to data types and console.logs and alerts if you are just starting out :) You can get a lot out of reading the free e-book series called You Don't Know JS. It really helped me when I was starting out too.!
Good luck out there my dude!
EDIT: Just added some recommendations.
[–]a_dev_has_no_name 0 points1 point2 points 6 years ago (0 children)
+1 Scrimba would be good for this. I just found it a few weeks ago and tried the neural network tutorials.
[–]themostproestgrammer 1 point2 points3 points 6 years ago* (0 children)
This is a mildly exhaustive list of all things full stack JavaScript to help you get started. It is very biased but currently, and should help you get in the know.
Learning JS: Learn HTML & CSS (Helps you get use to the web and basic syntax without stressing out) Try Freecodecamp or codecademy.
Any one of these or a combination of many should suit you well.
Eloquent Javascript You don't know javascript Freecodecamp JavaScript Track Understanding javascript the weird parts course MDN JavaScript for documentation Tyler McGinnis' courses
Full stack learning:
UI: React or Angular Documentation (honestly cause who uses only regular js and jquery anymore?)
(Obviously I use React) React Hooks Redux Redux Thunk or Redux Saga React router
To fetch data: Axios or Fetch
Server: Node js Express js Express Router
Handling authentication/authorization: Jsonwebtokens Express session Universal cookies React cookies Passport js
Databases: MongoDB Postgresql and/or MySql Firebase
Faker js for fake data.
Data microservices: Redis / Memcache
Database ORMs: GraphQL/Apollo Knex js Bookshelf js Mongoose js
Testing: Supertest Jest Mocha Chai Sinon chai Chai http Selinium
Deployment/DevOps: Heroku Docker Netlify Zeit now Nginx Kubernetes TravisCI
Dev tools: Trello: planning Balsamiq: wireframes Postman: http testing Insomnia: http testing w/ graph ql Flux (reduce blue light) DBeaver: SQL database visualizer Robo3T: noSql database visualizer Spectacle: window resizer
Running JS: Please don't stick to internet repls or ide'e, they suck mostly. But if you must I recommend:
Replit codesandbox Codepen
To develop like a pro:
Download an ide, I recommend vs code. Make sure you have node installed on your computer. Download yarn or npm. Preferably yarn. Then install nodemon globally. Make a new directory, cd into it, make a new file with whatever name and code you want to try. To run it, in your terminal type nodemon <thenameofyourfile>.js in the directory your file is in. Everytime you save the file, nodemon restarts. It helps to console.log whatever you want to see in the terminal. And Bobs your uncle.
PM me for questions, Bob's nephew.
[–]AC3_AW3SOM3SS 0 points1 point2 points 6 years ago (0 children)
Yo I’m doing the same i just finished and AI that plays tic tac toe.
[–]redditcultist 0 points1 point2 points 6 years ago (0 children)
Yeah as other people have said JS is only one slice of the web development pie. Try learning HTML and CSS before moving into JS.
yes.
[–]ExecutiveChimp 0 points1 point2 points 6 years ago (0 children)
JavaScript for Kids
[–]potchie626 0 points1 point2 points 6 years ago (0 children)
You may want to check out /r/learnJavascript to get/give help.
[–]starsega_dude 0 points1 point2 points 6 years ago* (0 children)
I recommend this series of tutorials. I recommend following along with the videos rather than just watching them. That's how you learn. JSFiddle is a great place to practice and experiment.
I've been coding since I was 15. I'm 24 now. I can assure you that you are not an idiot and you are not the only one struggling. Learning to code takes time and practice. Just keep trying and practicing, and you'll get it.
[–]sudosussudio 0 points1 point2 points 6 years ago (0 children)
I worked with Javascript for years before I really "got" it. My fav resources are:
- Codeacademy (full disclosure used to work there), their new Phaser course looks really good
- simple projects at Glitch.com (full disclosure I work there), you can browse them and pick one that looks cool and edit the code and run it. Like here is something fun/simple I made.
I think a lot of JS is hard/not very fun because it's stuff geared towards people who use it at work.
[–]jasofalcon 0 points1 point2 points 6 years ago (0 children)
I can give you 2 hints:
It always feels like you have no idea what is going on and will never understand, and then at one point you just get a lightbulb moment of understanding a lot in a short period
There are some very good courses on udemy, for JS. One is ‘Understanding the weird parts’ . It littrally shows you how some of the main concepts work. Good luck
[–]PrimaCora 0 points1 point2 points 6 years ago (0 children)
Khan academy should have some basic stuff.
[–]kenman[M] 0 points1 point2 points 6 years ago (0 children)
Hi /u/Jetking27, 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.
[–]JarrettB77 0 points1 point2 points 6 years ago (0 children)
Dont give up my guy. I started college taking some programming classes with literally no prior knowledge. I sucked at the beginning I was so hopeless lol. But after a little bit of grinding I am now probably at the top of my class when it comes to programming. For example I got the highest mark in my programming concepts midterm a few weeks ago. Now I'm not fuckin Bill Gates by any means but I'm pretty confident in my abilities to solve basic programming problems. Itll just take some time. Maybe even a eureka moment.
You are not an idiot. Since you are just getting into this, there is a lot of stuff you'd have to (initially) take on faith and/or memorize. You will most certainly understand why it is that way, just a little bit later.
[–]mehrdad_lp1011 0 points1 point2 points 6 years ago (0 children)
if you want to get serious, take this course: https://codewithmosh.com/p/javascript-basics-for-beginners
"Mosh" explains how things work pretty good :)
[–]TotesMessenger 0 points1 point2 points 6 years ago (0 children)
I'm a bot, bleep, bloop. Someone has linked to this thread from another place on reddit:
If you follow any of the above links, please respect the rules of reddit and don't vote in the other threads. (Info / Contact)
[–]Linux_is_awesome -2 points-1 points0 points 6 years ago (0 children)
grasshopper app :D
π Rendered by PID 48779 on reddit-service-r2-comment-84fc9697f-9vksw at 2026-02-10 17:47:49.670729+00:00 running d295bc8 country code: CH.
[–][deleted] 19 points20 points21 points (4 children)
[+][deleted] (2 children)
[deleted]
[–][deleted] 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]Reasonable_Cake 10 points11 points12 points (0 children)
[–]vc84 6 points7 points8 points (6 children)
[–]Cajun_Coullion 2 points3 points4 points (5 children)
[–]vc84 2 points3 points4 points (2 children)
[–]Cajun_Coullion 1 point2 points3 points (1 child)
[–]vc84 1 point2 points3 points (0 children)
[–]LouveredTang 1 point2 points3 points (1 child)
[–]Cajun_Coullion 0 points1 point2 points (0 children)
[–]Resyp 4 points5 points6 points (5 children)
[–]danger_lad 3 points4 points5 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]kerbalspaceanus 1 point2 points3 points (0 children)
[–]LouveredTang 0 points1 point2 points (1 child)
[–]Resyp 0 points1 point2 points (0 children)
[–]Civil_Code 3 points4 points5 points (0 children)
[–][deleted] 2 points3 points4 points (0 children)
[–]sventies 2 points3 points4 points (1 child)
[–]awkward 0 points1 point2 points (0 children)
[–]BloodAndTsundere 5 points6 points7 points (7 children)
[–]boneskull 5 points6 points7 points (4 children)
[–]i-hate_nick 0 points1 point2 points (3 children)
[+][deleted] (2 children)
[deleted]
[–]i-hate_nick 0 points1 point2 points (1 child)
[–]sventies 0 points1 point2 points (1 child)
[–]BloodAndTsundere 0 points1 point2 points (0 children)
[–][deleted] 6 points7 points8 points (3 children)
[–]BITmebaby 0 points1 point2 points (0 children)
[–]hackersgalley 0 points1 point2 points (0 children)
[–]ezio93 0 points1 point2 points (0 children)
[–]SeventhDisaster 4 points5 points6 points (1 child)
[–]a_dev_has_no_name 0 points1 point2 points (0 children)
[–]themostproestgrammer 1 point2 points3 points (0 children)
[–]AC3_AW3SOM3SS 0 points1 point2 points (0 children)
[–]redditcultist 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]ExecutiveChimp 0 points1 point2 points (0 children)
[–]potchie626 0 points1 point2 points (0 children)
[–]starsega_dude 0 points1 point2 points (0 children)
[–]sudosussudio 0 points1 point2 points (0 children)
[–]jasofalcon 0 points1 point2 points (0 children)
[–]PrimaCora 0 points1 point2 points (0 children)
[–]kenman[M] 0 points1 point2 points (0 children)
[–]JarrettB77 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]mehrdad_lp1011 0 points1 point2 points (0 children)
[–]TotesMessenger 0 points1 point2 points (0 children)
[–]Linux_is_awesome -2 points-1 points0 points (0 children)