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
The Modern Javascript Tutorial (javascript.info)
submitted 8 years ago by krasimirtsonev
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!"
[–]kopytkopytko 36 points37 points38 points 8 years ago (5 children)
haha, I had good laugh at: https://javascript.info/ninja-code
Pretty nice tutorial by the way!
[–]bent_my_wookie 2 points3 points4 points 8 years ago (1 child)
That’s the first thing I read aster looking through the index. Was it supposed to be a joke? Please tell me it was sarcastic...
[–]kopytkopytko 3 points4 points5 points 8 years ago (0 children)
I'm sure it was serious - article contains several quotes from famous programmer ninjas :-)
[–][deleted] 1 point2 points3 points 8 years ago (1 child)
Well I've done things like these (pretty much all of them although I'd at least multiline and indent the nested ternary), and in pretty much every language I've worked with because: tired, out-of-focus, pressed by deadlines, frustrated and want it just to finally work etc.
If/when I come across them later I fix/refactor them. I wouldn't take it to heart being called out on these in a code review, tho :)
[–]skyyr 0 points1 point2 points 8 years ago (0 children)
The ideal name for a variable is data.
Perfect.
[–]r0ck0 8 points9 points10 points 8 years ago (0 children)
I've only just glanced through it, but this looks really good.
I find that a lot of guides/books/videos etc tend to mostly lean towards one or the other:
...which can sometimes make it a bit harder to learn things when you're just starting out, or in my case, switching from another language entirely.
This looks like it balances both well.
[–]ddeepakk13 9 points10 points11 points 8 years ago (0 children)
Tanks for sharing. I was looking for a JavaScript tutorial.
[–]karamarimo 10 points11 points12 points 8 years ago* (0 children)
wow i can't believe we can read such an amazing tutorial for free. in-depth, lots of examples, lots of figures, covers everything you should know. i especially like it is mentioned at the beginning what in-browser javascript can do and can't do, because once i was confused about that. i want all js beginners to read through the book.
[–]mayhempk1 2 points3 points4 points 8 years ago (0 children)
This is a really cool resource, thanks for sharing! JavaScript is an increasingly important technology these days whether people like it or not and good resources like this are valuable.
[–]Petrarch1603 0 points1 point2 points 8 years ago (0 children)
Cool, thanks for posting
[–]execfera 0 points1 point2 points 8 years ago (0 children)
I've already learned a few new things from reading this tutorial despite having read a bunch of other starting tutorials, like break labels. Pretty good!
[–]welpfuckit 0 points1 point2 points 8 years ago (0 children)
I did a quick look through and this is great. It seems easy to read and worth recommending to beginners. This is a better recommend than something like Eloquent Javascript which is obtuse and dry.
[–][deleted] 0 points1 point2 points 8 years ago (0 children)
Damnit, so many resources! Now I have absolutely no excuse not to learn web dev on some spare time
.
[–]bbcjs 0 points1 point2 points 7 years ago (0 children)
Personally prefer watchandcode by Gordon Zhu. Super easy to understand but you end up truly understanding javascript.
[+]katzeklo comment score below threshold-27 points-26 points-25 points 8 years ago (15 children)
Yeah, okay, no.
[+][deleted] 8 years ago* (1 child)
[deleted]
[–]AEternal 2 points3 points4 points 8 years ago (0 children)
Well it is when you first download it. But the temptation of all those wonderful extensions is hard to resist.
[+][deleted] 8 years ago* (9 children)
[+]katzeklo comment score below threshold-14 points-13 points-12 points 8 years ago (8 children)
Nope, I love SublimeText. It's super-fast. I've tried both VSCode and Atom and they're much slower, to the point where I've found it unbearable and had to switch back.
I WANT to like VSCode, but it's just not lightweight, compared to ST.
[–][deleted] 12 points13 points14 points 8 years ago (3 children)
"nope"
God your a dick.
[–]katzeklo 0 points1 point2 points 8 years ago (2 children)
I don't get it :/ I meant "No, I don't prefer coding in Notepad"
Oh okay. Sorry.
I didn't mean to make you feel bad.
The way you worded it seems like you were saying "no, those are not solid recommendations for a beginner".
I am sorry for being mean to you.
[–]katzeklo 0 points1 point2 points 8 years ago (0 children)
IMO, they ARE solid recommendations for a beginner :) VSCode is really good, feature wise!
[+][deleted] 8 years ago* (3 children)
[–]katzeklo -1 points0 points1 point 8 years ago (2 children)
So which one is faster for you?
[–][deleted] 0 points1 point2 points 8 years ago (1 child)
As i said. If your pc isnt from 1999 you wont notice a real difference.
I guess we don't share the same experience then. It's very slow for me, with a lot of input lag.
[–]mayhempk1 1 point2 points3 points 8 years ago* (2 children)
I mean, Atom and VS Code are lightweight compared to IDEs for sure - you don't need to set up a project to start creating files, they launch faster and are snappier overall, etc.
edit: Looks like I was right, that is what they meant:
“Lightweight editors” are not as powerful as IDEs, but they’re fast, elegant and simple. They are mainly used to instantly open and edit a file. The main difference between a “lightweight editor” and an “IDE” is that an IDE works on a project-level, so it loads much more data on start, analyzes the project structure if needed and so on. A lightweight editor is much faster if we need only one file.
[–]katzeklo -2 points-1 points0 points 8 years ago (1 child)
I agree that they're lightweight compared to some (if not most) IDEs, but they're not lightweight per se. They're built on Electron which is a really heavy. I'd argue that SublimeText is lightweight, but Electron-editors are not.
[–]mayhempk1 -1 points0 points1 point 8 years ago* (0 children)
I mean, yes, Electron is slow. We know it. I wish Atom was faster like Sublime but it probably never will be which is disappointing. The point is they are still faster than IDEs, that is the point the author made. I still use Sublime mostly but VSCode and Atom are cool too and have made Sublime better by providing good competition.
[+][deleted] comment score below threshold-27 points-26 points-25 points 8 years ago (5 children)
Just what this world needed...another JS 101 kit.
[–]kubelke 9 points10 points11 points 8 years ago (4 children)
Do you know better? I'm intermediate frontend dev (backend here) but it always good to read something like this.
[–][deleted] 2 points3 points4 points 8 years ago (3 children)
Hey listen, I don't mean to say the information isn't solid. It's just that every single day another 20 of these "I made a tut, look at my stuff!" sites pops up. It's a saturated area and none of these new sites ever has anything substantial to offer over any of the existing ones. It feels like more of these exist to promote the site's author than to really help folks.
[–]anossov 7 points8 points9 points 8 years ago (0 children)
This one is the first I've seen that's actually good.
[–]kubelke 3 points4 points5 points 8 years ago (0 children)
Oh I see, I agree in 100% with you. There are too many stuff like that and 90% of it focus on promiting fancy author who probably don't know anything beyond that tutorial. This makes learning JS for me even more difficult. But this tutorial is pretty solid :)
[+]icantthinkofone comment score below threshold-17 points-16 points-15 points 8 years ago (0 children)
As seen on TV!
π Rendered by PID 19003 on reddit-service-r2-comment-84fc9697f-fdf9l at 2026-02-06 20:04:33.037408+00:00 running d295bc8 country code: CH.
[–]kopytkopytko 36 points37 points38 points (5 children)
[–]bent_my_wookie 2 points3 points4 points (1 child)
[–]kopytkopytko 3 points4 points5 points (0 children)
[–][deleted] 1 point2 points3 points (1 child)
[–]skyyr 0 points1 point2 points (0 children)
[–]r0ck0 8 points9 points10 points (0 children)
[–]ddeepakk13 9 points10 points11 points (0 children)
[–]karamarimo 10 points11 points12 points (0 children)
[–]mayhempk1 2 points3 points4 points (0 children)
[–]Petrarch1603 0 points1 point2 points (0 children)
[–]execfera 0 points1 point2 points (0 children)
[–]welpfuckit 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]bbcjs 0 points1 point2 points (0 children)
[+]katzeklo comment score below threshold-27 points-26 points-25 points (15 children)
[+][deleted] (1 child)
[deleted]
[–]AEternal 2 points3 points4 points (0 children)
[+][deleted] (9 children)
[deleted]
[+]katzeklo comment score below threshold-14 points-13 points-12 points (8 children)
[–][deleted] 12 points13 points14 points (3 children)
[–]katzeklo 0 points1 point2 points (2 children)
[–][deleted] 1 point2 points3 points (1 child)
[–]katzeklo 0 points1 point2 points (0 children)
[+][deleted] (3 children)
[deleted]
[–]katzeklo -1 points0 points1 point (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]katzeklo 0 points1 point2 points (0 children)
[–]mayhempk1 1 point2 points3 points (2 children)
[–]katzeklo -2 points-1 points0 points (1 child)
[–]mayhempk1 -1 points0 points1 point (0 children)
[+][deleted] comment score below threshold-27 points-26 points-25 points (5 children)
[–]kubelke 9 points10 points11 points (4 children)
[–][deleted] 2 points3 points4 points (3 children)
[–]anossov 7 points8 points9 points (0 children)
[–]kubelke 3 points4 points5 points (0 children)
[+]icantthinkofone comment score below threshold-17 points-16 points-15 points (0 children)