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)

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..