121pages on
this wiki
Add New Page
Talk0 Share
Programmer's Wiki
This page has been moved to the Programmer's Wiki.
Please do not make any changes or additions to this page.

Any modifications, if still appropriate, should be made on Javascript at the Programmer's Wiki.

Javascript is most commonly used for client side website development. It's a weak programming language designed to look like Java but easier for the non-programmer. Java and Javascript are commonly mixed up or thought to be the same thing which is wrong. Java and javascript are alike in almost no ways at all.

Javascript was going to be named 'LiveScript' but the name was changed to javascript because of a co-marketing deal with Netscape, which in return Netscape would add support for Java Runtime Enviroment with their browser. Before it was named 'LiveScript', it was actually called 'Mocha', named and created by a member of Netscape named Brendan Eich.

Hello World Edit

The easiest way to make the most common 'Hello World' code.

<script type="text/javascript">
document.write("Hello World!");

Identifying Edit

Javascript has many things different from the programing languages you may know, and may also have alot of similarities the main things in javascript (which would be a good way to identify if a code is programmed in javascript or not) are these few examples:

  • Javascript uses values, not Variables, meaning it can change its value from a int (integer) to text (string), as seen in this example:
<script type="text/javascript">
var Varname = "10 ";
var Varname = "Apples";

The code above outputs "10 Apples".

  • In seen in many programming languages, methods or classes (as most commonly known from Java) has been changed to functions. Example:
<script type="text/javascript">
Function FunctionName () {
document.write("Fucntion Acvitivated");

To activate the function, the coder would type in "FunctionName();" or make a input button to activate it with HTML.

  <input type="button" value="Click Me" onClick="FunctionName();">

Node.js Edit

Node.js is a platform built on Google Chrome's Javascript runtime. In layman's terms, it allows you to run Javascript files without opening the browser.

You can install Node.js here:

Tutorials Edit

External Links Edit

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.