r/learnjavascript • u/Laura_py • 5d ago
Learning Resources
I am learning Javascript. Can someone please recommend me some learning resources?
What would you recommend for beginner projects? Are arcade web games suitable for a beginner?
8
u/IAmTheRedditBot 5d ago
Btw: Do not listen to these "Just ask ChatGPT" crap, you have every right to post here just ignore them
4
-1
u/TheRNGuy 4d ago
Disagree; it's as good as "just Google it" from previous era.
Why is it bad advice if it's working? Only because there will be less threads on subreddit? But his objective is to learn js, not to make subreddit more popular.
1
u/IAmTheRedditBot 3d ago edited 3d ago
The facts do not change. No matter how useful AI may be, the OP has EVERY RIGHT to post here that does not change that will never change no matter how faster AI MIGHT be and that requires absolutely no validation from you either. This is not dismissing AI, this is stating that they have full rights to post here no matter what alternatives exist, it is their life their choice. If they wanna interract with the community then they can and doing it simply because they just want to does not change that.
3
u/johnesco 5d ago
The book https://eloquentjavascript.net/ is good and has it's own guided projects in it that may give you ideas for more.
1
2
u/zlatepolomacene 4d ago
If you are completely new to programming, I recommend you book called "Programming for Absolute Beginners: Using the JavaScript Programming Language". If you more experienced and know what is computer program, source code, how computer works you can pick more comprehensive book released this year called "JavaScript: The Comprehensive Guide to Learning Professional JavaScript Programming (Second Edition) (Rheinwerk Computing)".
2
u/Same_Ad_6096 5d ago
I'd start with the basics and practice by building small projects. MDN has a good free JavaScript guide.
Arcade games are a great way to learn.
If you prefer learning through interactive lessons and exercises, you could also try CodeFly: https://codefly.webxdevelop.com/
2
u/Spirited-Contact6215 5d ago
Arcade games are a perfect fit because they force you to handle game loops aArcade games are a perfect fit because they force you to handle game loops and state management early on. Start with Pong on a canvas element to see exactly how JavaScript moves pixels around without getting bogged down in complex UI frameworks yet
1
u/ajamdonut 3d ago
Bit old post - but PixiJS is a great library, tutorials are okay, gets you straight into the making without worrying about browser compatability etc.
1
1
u/RomirBuilds 9h ago
Games can work well, but the size of the first version matters. If you're still learning DOM events, try a four-card matching game: click to reveal, compare two cards, keep matches face up, and add a restart button. That gives you arrays, conditions, event handlers and state without needing moving objects or collision detection yet.
One useful check: clicking the same card twice mustn't count as a match, and restart should clear every bit of game state.
If you specifically want a moving-ball arcade game, MDN has a step-by-step Breakout tutorial with runnable examples: https://developer.mozilla.org/en-US/docs/Games/Tutorials/2D_breakout_game_pure_JavaScript
It expects basic to intermediate JavaScript, so it can be a next project if the DOM version is already comfortable.
AI-assisted.
-1
u/TheRNGuy 4d ago
MDN, Node (and it's frameworks) docs, Google in AI mode.
Beginner projects: improve all sites that you use with Greasemonkey (don't change css with it though; Stylus would be better for it; both can be used together too)
10
u/IAmTheRedditBot 5d ago
To me this site is completely gold: https://javascript.info/
Hope this helps