Wikia

ProgrammingWiki

Javascript

Talk0
116pages on
this wiki
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, its 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 names was changed to javascript because a Co-Marketing Deal with Netscape witch in return Netscape would add support for Java runtime Enviroment with there Browser. before it was named 'LiveScript' it was actually called 'Mocha' named and created by a member of Netscape named Brendan Eich, he was the originall creator of Javascript.

Contents

Hello World Edit

The Easiest Way to make the most common 'Hello World' Code.

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

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 javascript or not) are these:

  • Javascript uses 'Values' not 'Variables' meaning it can change its value from a int (intiger) to text (string) as seen in this example
<nowiki>
<script type="text/javascript">
<!--
var Varname = "10 ";
document.write(Varname);
var Varname = "Apples";
document.write(Varname);
//-->
</script>
</nowiki>

Witch would make a output "10 Apples"

  • In seen in many programming languages Methods or Classes (as most commonly knowen from Java has been changed to Function's such as below
<script type="text/javascript">
<!--
Function FunctionName () {
document.write("Fucntion Acvitivated");
}
//-->
</script>

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

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

Tutorials Edit

External Links Edit

Advertisement | Your ad here

Photos

Add a Photo
38photos on this wiki
See all photos >

Recent Wiki Activity

See more >

Around Wikia's network

Random Wiki