JavaScript

   Not to be [1]confused with [2]Java.

   JavaScript (JS) is a very popular, highly [3]shitty [4]bloated
   [5]scripting [6]programming language used mainly on the [7]web. The
   language is basically the centerpoint of [8]web development, possibly the
   worst area a programmer can find himself in, so it is responsible for a
   great number of [9]suicides, the language is infamously surrounded by a
   clusterfuck of most toxic [10]frameworks you can imagine and a curious
   fact is also that people who program in JavaScript are less intelligent
   than people who don't program at all. JavaScript is NOT to be confused
   with an unrelated language called [11]Java, which for some time used to be
   used on the web too but works very differently. JavaScript should also not
   be confused with [12]ECMAScript, a language standard which JavaScript is
   based on but to which it adds yet more antifeatures, i.e. JavaScript is a
   dialect of ECMAScript (other similar ECMAScript-based languages are e.g.
   ActionScript and JScript). [13]LRS stance towards this language is clear:
   as any other mainstream [14]modern language JavaScript is an absolutely
   unacceptable choice for any serious project, though it may be used for
   quick experiments and ugly temporary programs as the language is high
   level, i.e. extremely easy, it doesn't require any ability to think, it
   works in every browser (so you get a kind of [15]multiplatformness) and
   allows making things such as [16]GUI and visualizations super quickly and
   easily. But remember that this kind of "comfort" always comes for a cost
   too high to pay.

   How bloated is JavaScript? Very much. A [17]MINIMALIST [18]C
   implementation called QuickJS has around 80K [19]lines of code -- compare
   e.g. to about 25K for [20]tcc, a similar style implementation of C, and
   about 5K for [21]comun. A more mainstream implementation of JavaScript,
   the [22]v8 engine (used e.g. in node.js) has over 1 million lines of code
   of C++. { Checked with cloc. V8 also contains web assembly aside from
   JavaScript, but still you get the idea. ~drummyfish }

   Number 1 rule of a good website is: NEVER use JavaScript. Website is not a
   program, website is a document, so it doesn't need any scripts. Privacy
   freaks hate web JavaScript because it's a huge [23]security vulnerability
   (websites with JavaScript can spy easily on you -- yes, even if the script
   is "[24]free software") -- we don't fancy security but JavaScript is still
   bloat and [25]capitalist shit, it makes a website literally unusable in
   good browsers (those that don't implement JavaScript) so [26]we hate it
   too. Basically everyone hates it.

   In the past JavaScript was only a [27]client side scripting language, i.e.
   it was used in [28]web browsers (the clients) to make computations on the
   client computer (which suffices for many things but not all) -- as a
   browser language JavaScript interoperates with [29]HTML and [30]CSS, other
   two languages used on websites (which are however not programming
   languages). For server side computations [31]PHP, a different language,
   was used, however later on (around 2010) a framework/environment called
   [32]node.js appeared which allowed JavaScript to be used as a more general
   language and to be used for server side programming as well; as it's more
   comfortable to write everything in a single language, JavaScript started
   to replace PHP in many places, though PHP is still used to this day.

   [33]jQuery is a very popular [34]library that's often used with
   JavaScript. It's kind of a universal library to do things one often wants
   to do. We mention it because everyone around JavaScript just supposes
   you'll be using it.

   Why is it called JavaScript if it has nothing to do with Java? Simply put
   the name was chosen because back then Java was the big thing and they
   wanted to show that JavaScript is kind of similar but complementary, the
   developers of the languages were associated with each other and they
   thought it would be good [35]marketing to associate the languages through
   naming, but of course the languages are completely different.

   TODO: some more shit

JavaScript Fun

   Here let be recorded funny code in this glorious language.

   This kills the JavaScript:

 clear(this);

   That's right, the above code just make JavaScript commit [36]suicide by
   deleting its whole global thing.

   { Found here:
   https://codegolf.stackexchange.com/questions/61115/make-your-language-unusable.
   ~drummyfish }

   Here is how to make your page work only with JavaScript turned off:

 <html>
 <head>
 <script>
 function nuke() { document.body.innerHTML = "<p>disable JavaScript to view this page</p>"; }
 </script>
 </head>

 <body onload="nuke()">
   <h1> My awesome page </h1>
   <p> My awesome page text :) </p>
 </body>

 </html>

   { NOTE: Remember that normally breaking compatibility on purpose is
   probably bad, it shouldn't be done seriously (don't waste effort on
   breaking something, rather make something nice, also censorship is always
   bad), but it's a nice [37]troll :D Don't forget to have fun sometimes.
   ~drummyfish }

   Or this will give an epileptic seizure to everyone who has Javascript on:

 <html>
 <head>
 <script>
 alert("Turn off Javascript to make it stop.");

 var count = 0;

 function go()
 {
   count += 1;
   document.body.style.backgroundColor = (count % 2) ? "red" : "blue";
   document.body.style.color = (count % 2) ? "green" : "yellow";
   document.body.style["font-size"] = (count % 64).toString() + "px";
   setTimeout(go,10);
 }
 </script>
 </head>

 <body onload="go()">
   <h1> My awesome page </h1>
   <p> My awesome page text :) </p>
 </body>

 </html>

   TODO: some JS nonsense like below (https://wtfjs.com/)

 "11" + 1  // "111"
 "11" - 1  // 10

Links:
1. often_confused.md
2. java.md
3. shit.md
4. bloat.md
5. script.md
6. programming_language.md
7. www.md
8. webdev.md
9. suicide.md
10. framework.md
11. java.md
12. ecmascript.md
13. lrs.md
14. modern.md
15. multiplatform.md
16. gui.md
17. minimalism.md
18. c.md
19. loc.md
20. tcc.md
21. comun.md
22. v8.md
23. security.md
24. free_software.md
25. capitalism.md
26. lrs.md
27. client.md
28. web_browser.md
29. html.md
30. css.md
31. php.md
32. node_js.md
33. jquery.md
34. library.md
35. marketing.md
36. suicide.md
37. troll.md