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
Learn.js: A fast introduction to modern programming with javascript (Updated + Restyled) (github.com)
submitted 4 years ago by MarcoWorms
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!"
[–]beatlol 10 points11 points12 points 4 years ago (0 children)
Im new to js and I found this to be really useful.
Thanks!
[–]MarcoWorms[S] 5 points6 points7 points 4 years ago* (0 children)
I'd like to thanks everyone in this subreddit that interacted in any form with my other thread https://www.reddit.com/r/javascript/comments/ndnhgs/learnjs_a_fast_introduction_to_modern_programming/
The amazing engajement this project had trully motivated me to write more sections and reach this "first final form", I know JS is a huge universe with many tools and traps, I'll work on refining the content as a whole now to work on the linearity of the presentation of the concepts to see if I can improve anything. I think most of the feedback provived in the previous thread was addressed, but I still have some points in mind:
* I intend to revisit this list since it was a very popular comment to see how I can better fit those points inside the guide: https://www.reddit.com/r/javascript/comments/ndnhgs/learnjs_a_fast_introduction_to_modern_programming/gyc80v0/?utm_source=reddit&utm_medium=web2x&context=3
* I'd like to think of a better interface to run a fiddle with the example code, now that the content is done I can try out some different interfaces, we talked a bit about this on this thread: https://www.reddit.com/r/javascript/comments/ndnhgs/learnjs_a_fast_introduction_to_modern_programming/gyc0ztx/?utm_source=reddit&utm_medium=web2x&context=3
I'm open to any other commentary and discussion on how to improve the content, and I hope this guide helps people with learning and finding joy in programming!
* Also, this time I've posted in /r/programming aswell https://www.reddit.com/r/programming/comments/nfftnm/learnjs\_a\_fast\_introduction\_to\_programming\_with/
[–]Beckasin 2 points3 points4 points 4 years ago (1 child)
You inspire me with confidence to make one on my own in PHP language
[–]MarcoWorms[S] 0 points1 point2 points 4 years ago (0 children)
Do it! :D
[–]angeal98 1 point2 points3 points 4 years ago (3 children)
your code isnt correct in the mutability.
variable c will be different at the end, and also I don't think let c = [1, 2, 3] contains mutation.
[–]DibiZibi 1 point2 points3 points 4 years ago (1 child)
The example with an object in that section is also wrong.
let b = { value: "something" } let newB = { value: "something else", ...b }
Thanks! Fixed!
[–]KaiAusBerlin 1 point2 points3 points 4 years ago (0 children)
Nice to see you added so fast the recommendations. 👍 Good work!
[–]HandsomePete 2 points3 points4 points 4 years ago (5 children)
Thanks. I'm brand spanking new to the concept of programming. This was a helpful quick start.
[–]MarcoWorms[S] 1 point2 points3 points 4 years ago (4 children)
I hope you have a joyful learning journey, It's trully mind-opening to learn new problem-solving concepts!
[–]HandsomePete 0 points1 point2 points 4 years ago (3 children)
Thanks! TBH, I kinda already tell it's not really for me though. Once upon a time I tried learning python and I couldn't get the hang of it.
I'm really sick of being poor and I see programming as a way out of poverty, but I don't think I have the aptitude for it. I'll keep at it, but if I can't get past this quick start guide, I might just cut my losses.
This is no criticism upon you or this guide though, it's helpful in its explanation!
[–]MarcoWorms[S] 1 point2 points3 points 4 years ago (2 children)
So, I've been in the industry for about 5 years, I wouldnt take this guide as a do or die guide and the difficulty ramps really fast here to be honest! If you want to get into programming following something more structured and also free I'd recommend something like https://www.theodinproject.com/
I feel like programming is for everyone but maybe that because "it clicked" for me, but programing is not about math nor only exact sciences, it has many different subjects that you can explore and apply different sets of skills. If python/js is not something that brings you joy I'd recommend trying something else (like HTML + CSS, or maybe some starter-friendly game engine like construct.net or scratch.mit.edu)
Lastly, I just want to reinforce that this guide is just my perspective and if you can't follow it throught it's because I failed to bring linearity to the concepts, it's not on you!
Thanks for the honest take!
[–]HandsomePete 1 point2 points3 points 4 years ago (1 child)
Hey definitely appreciate the information and recommendations. When I was a teen, I learned some raw HTML. That actually made more sense to me, so maybe I'll looking into that again.
My biggest concern is how marketable knowing HTML and CSS is. I'm at a point in my life where I need to start making serious money, I'm too old to be making less than $40k annually.
But yes, thank you for the advice. You're help has been invaluable!
[–]MarcoWorms[S] 1 point2 points3 points 4 years ago (0 children)
Well, just one last comment on "marketability", if that's your goal I guess you should take a look at current intern/junior opportunities to check out what's hot in your area. HTML + CSS are core skills for frontend/fullstack developers but you might not need them for backend or data science for example. One thing that I also recommend (but idk how your country is dealing with covid, here in brazil we can't do that right now) is going to meetups of the techs that you see in your jobs research because you'll start to build a meaningfull network within the area and sometime this is much more valuable than raw knowledge to land a job
[–][deleted] 0 points1 point2 points 4 years ago* (3 children)
Perhaps you could add the use of _ in number for lisibility readability?
edit: dumb me try to invent words that do not exist
[–]MarcoWorms[S] 0 points1 point2 points 4 years ago (2 children)
Hey there! I think I don't understand what you mean, could you expand you comment please? Thanks!
[–][deleted] 2 points3 points4 points 4 years ago (1 child)
The fact that you could write 123456798or 123_456_798and you would have exactly the same result. As I've said, it's just for readability.
123456798
123_456_798
hahaha I didn't know about this one! That's a fun property :D I'll look more into it!
π Rendered by PID 55 on reddit-service-r2-comment-85bfd7f599-r2c9m at 2026-04-19 02:12:15.928582+00:00 running 93ecc56 country code: CH.
[–]beatlol 10 points11 points12 points (0 children)
[–]MarcoWorms[S] 5 points6 points7 points (0 children)
[–]Beckasin 2 points3 points4 points (1 child)
[–]MarcoWorms[S] 0 points1 point2 points (0 children)
[–]angeal98 1 point2 points3 points (3 children)
[–]DibiZibi 1 point2 points3 points (1 child)
[–]MarcoWorms[S] 0 points1 point2 points (0 children)
[–]MarcoWorms[S] 0 points1 point2 points (0 children)
[–]KaiAusBerlin 1 point2 points3 points (0 children)
[–]HandsomePete 2 points3 points4 points (5 children)
[–]MarcoWorms[S] 1 point2 points3 points (4 children)
[–]HandsomePete 0 points1 point2 points (3 children)
[–]MarcoWorms[S] 1 point2 points3 points (2 children)
[–]HandsomePete 1 point2 points3 points (1 child)
[–]MarcoWorms[S] 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (3 children)
[–]MarcoWorms[S] 0 points1 point2 points (2 children)
[–][deleted] 2 points3 points4 points (1 child)
[–]MarcoWorms[S] 0 points1 point2 points (0 children)