JavaScript

From Uncyclopedia, the content-free encyclopedia.

Jump to: navigation, search

Whoops! Don't you mean Java ?

JS, unlike Python, was a rushed little hack.

~ Brendan Eich on Javascript

Have a Script!

~ Spanish Speaker on Javascript

In soviet russia, computer programs you!

~ Joey Stalin on crack

its too hard 4 me. i think ill just do batch and html insted til i can be beter at makin code ok?

~ Scriptkiddie on JaVaScRiPt

I larned a new language! Javascript!

~ a geek on Javascript

The Bastard child of HTML and C++.

JavaScript is a type of ineffectual computer virus, first created in 1995 by the well known script kiddie Brendan Eich of the trolling organisation "Mozilla".

The early web was a surprisingly safe environment, one in which a parent could allow their child to roam as free as Adam. Acting in response to this, the Java computer virus was created to annoy and mentally disturb Internet viewers. Java, however, was limited in its ability to wreck havoc, being more or less restricted to slowing down the loading of a web page; not a particularly effective means of annoying people.

JavaScript, ( "Java" + "Script Kiddie" ), was an attempt to improve the virus's effectiveness. One of its early success stories was the ability to cause one image to be replaced by another when the user would roll over it. This confusion tactic was simple, but ultimately lead to better forms of Internet harassment. The height of its popularity within the hacker community came when the "Pop-up Technique" was created, a truly brilliant way to lock a user into view hundreds of porn sites with no way to exit their browser. Unlike most viruses, JavaScript uses a "prototype-based object-unoriented paradigm", rather than the traditional class/instance model. It is also "loosely typed", meaning 1+1 = 11. However, in some earlier versions of Internet Explorer, 1+1 did in fact equal a window. An international trolling organisation called the ECMA, ("European Collective Masturbation Association"), created their own JavaScript virus, called ECMAScript. This now legendary version is used as the basis of several well known viruses, including "ActionScript" used in the trojan horse "Macromedia Flash". For a much more effective virus with which to annoy people, see VBScript.

Contents

[edit] Object unorientation in JavaScript

Even though JavaScript was not invented by Microsoft, its model is still stupid enough to be considered acceptable. JavaScript's most essential feature is objects. Every object in JavaScript has one of two possible orientations: positive and negative. Objects oriented in a positive way have their normal vectors parallel to the object itself and the call:

Object.getUnorientation()

will return a non-real number roughly indicating the current volume of the speakers from the following set:

math

Objects whose orientation is negative don't have normal vectors at all (although in some rare instances it was observed that the length of all such vectors was no longer than the cord of the mouse). Although using negatively-oriented objects is sometimes not advised, if used properly they could greatly add to the number of bugs in the code - the technique called Proper Object Syntax (POS) or as formally defined in ECMAScript specification: Proper Unorientable Syntax Interface (PUSI). Just as positively oriented objects, negatively oriented objects also support calls in the form:

Object.getUnorientation()

Calling this method on a negatively oriented surface gives a very desired result of a Segmentation Fault, followed by a Blue Screen of Death. <script>alert("Hi")</script>

[edit] Security using JavaScript

As every well-trained web designer knows, the best way to prevent h4x0rS from hacking into your servers is by using JavaScript. Unfortunately, there is a very wide-spread lie that PHP is the right tool for the job, but that is not true. PHP security can be avoided by simple tools such as the popular FireFox extension "noPHP" which simply disables the use of PHP, whereas JavaScript will stop the user from even sending malicious stuff to the server in the first place!!

[edit] Debugging JavaScript

Another extreme advantage with using JavaScript is its amazing, in-built debugging system. If there is anything wrong with your code, it will promptly give you a message stating which line the error is on, what the problem is, and how to fix it. What it most definitely does NOT do is absolutely nothing while silently just quitting on you. (I mean seriously, thank god that's not the case. otherwise people would have to resort to stuff like putting alert messages LITERALLY EVERYWHERE in order to find the problem.) Another nice feature is a decision by the platform designers to reduce the number of possible confusing error messages by reporting the line number as "0" or "1", regardless of where the error actually occurs in the code.

[edit] Portability of JavaScript

Unlike its brother language Java, JavaScript is completely assured to work all the time, no matter what OS/architecture/browser is being used. This is due to Microsoft's heroic efforts to bring the whole programming community together by all using the same standards. Back in the day, JavaScript hardly ever worked on any system because all the major browser creators were pitted against each other, trying to each get as many users as possible. Then Bill Gates was like "whoa, dude. this totally has to stop" so he nobly sacrificed Internet Explorer's lead in share of users in order to cooperate with Netscape. Unfortunately there are still a few browsers who do not conform to standards such as Safari, Opera, and Konqerer.

[edit] How to molest a kitten using JavaScript

1. Define the objects in the program:

//the kitten you want to rape
fluffy=new Kitten();

//this is you
you=new Horny_Psychopath();

2. Add in functions:

//use this to find the kitten
function findKitten();
{
 for(kitten in document.kittens) {
  if(document.kittens[kitten].distance == 0) return document.kittens[kitten];
 }
}

//self explanitory
function thrustIn(kitten, object, how_far)
{
 return kitten.appendGenitalia(object, how_far);
}

//self explanitory
function pullOut(object)
{
 return object.parentKitten.removeGenitalia(object);
}

//how to make a quick get away
function runLikeHeck(fromWhat)
{
 while(fromWhat.distance<(99999999999*9999999999999))
 {
  you.run();
 }
}

3. Run the script:

//define yourself
var you = document.getElementsByNameTag("me");
//find the kitten in front of you
var fluffy = findKitten();

//thrust in and out of the kitten until you become tired or spotted
while((you.stamina==notTired) && (you.spotted==false))
{
 thrustIn(fluffy,"6in");
 pullOut(you.cock);
}
//if you get tired or found, remove genitalia and run away
if((you.stamina==tired) || (you.spotted==true))
{
 pullOut(you.cock);
 runLikeHeck(fluffy);
}
Programming languages

Assembler - BASIC - Brainfuck - C - C Flat - C# - C=C+1 - COBOL - Delphi - FORTRAN - Haskell - Java - JavaScript - Lithp - LOGO - Perl - PHP - Python - Scheme - Tcl - VBScript - Visual Basic

The cornerstones of the Internets
Internet | Internets | World Wide Web | The Network
Browsers Internet Explorer | King Bowser Koopa | Safari | Konqueror | Opera | Maozilla | Mozilla Firefox
Languages CSS | LifeScript | Perl | PHP | Java | JavaScript | VBScript | Internet-speak
Formats Image file formats (GIF JPEG LIM PNG SVG) | HTML | SGML | XHTML | XML
Consortiums W3C | Zann
Personal tools
projects