roughly how many years ago was when you were 12? Javascript has evolved a lot over the years... but i have seen much worse code, this would be good in comparison to a lot i used to see in the IE6 days :D
Yeah there is a bunch of ways, as the other redditor posted, carbon. Also your favorite code editor probably has an extension that does something like that
21
u/barkermn01 Dec 20 '22
roughly how many years ago was when you were 12? Javascript has evolved a lot over the years... but i have seen much worse code, this would be good in comparison to a lot i used to see in the IE6 days :D
11
u/MurdoMaclachlan public boolean isInt(int i) { return true; } Dec 20 '22
Image Transcription: Code
I'm a human volunteer content transcriber and you could be too! If you'd like more information on what we do and why we do it, click here!
4
u/greenhaveproblemexe Dec 20 '22
How do you make a picture of code like this, with the borders and syntax highlightning.
1
u/KopitarFan Dec 20 '22
This looks like the JS we were all doing back in the early 2000s. How long ago was this?
8
u/wiesemensch Dec 20 '22
Not sure if it’s just me but, I think JavaScript-Code always tends to be a total mess.
3
u/chrisza4 Dec 21 '22
And people say that JS ecosystem today is way too complex with React, Angular, etc. and old days pure Javascript was simpler.
Yeah, this was what frontend dev deal with back in the day.
-2
u/dumassonreddit Dec 21 '22
Java was always messy fr .