Jump to content

Recommended Posts

Posted

First of all java and javascript has NOTHING to do with each other.Well i`ll show u a tutorial (as much as i know) javascript.

What the fuck is this javascript?!

Javascript supports many stuff like starting scripts to web servers and web browsers.For creating dynamic pages , more interactive ,or sometimes intergrated with plug-in modules , activeX components and Java applets.

Javascript offers you a special posibilities for programming and you don't even need some more special web server like PHP or ASP.

 

Where does it writted?

Javascript is writted in the HTML file like you just open and then close a tag just like this :

 

<script type="text/javascript">

The javascript here;

</script>

 

How does it works?

When the browsers opens a HTML document with scripts , they begin to read and order the scripts on the order they are placed , with some exceptions that have to be "called".The scripts can be used for dynamic creating of elements from a visual contect on the document , for using already ordered features like i mentioned below : activeX ,java applets and more.

 

Syntax

Syntax of JavaScript is diffrent than this on VBScript.In JavaScript the rows are ending like a . or a , (this symbol - ; and not - ., d:).Because of this if javascript don't get this ";" , his interpertator gets everything on one row.

Other diffrence is that VBScript is one procedurecan be even a function if in order returns a value or program, if it don't return anything. In javascript every procedure is function no matter that it retunrs a value.On the functions i`ll explain a bit downer.

 

Commentars

One row comment means that we have to type two of these lines "//"

More row comment is beginning with one line on right and a star like "/*" and its ending the backwards like "*/"

 

How the changing values are declared?

 

 

Theres a few types of changing numbers , a text containing and boolean ones (only they have 2 values like 0 or false and 1 or true.It can be only one value ,not both!)

 

var MyNumberChanging = 10;

var MyTextChaninng = "asd fasdfsafd";

var MyBooleanChanging = true;

 

I will update it recently , right now i can't remember more :D Or just dunno how to explain it.. Thanks for reading (if u read it all ofc :D)

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...