[1]
[2]
[3]
[1]
[2]
[3]
Declaration – process of variable's specifying. Usually declaration consist of defining: type, name and default value of variable.
A process in which a variable is set to its first value is called initialization.
[1]
[2]
[3]
Or quickly
var variable = 10;
[1]
[2]
[3]
[1]
[2]
var s = “text”; or var s = String(“text”);
//string values for example: “”, “text”, ‘text’
var b = true; or var b = Boolean(true);
//bollean values: true and false
[1]
[2]
[3]
var u;
// created and uninitialized
And Object type… but it will be reviewed in future :)
[1]
var a, b, c;
a = 10;
b = true;
c = a + Number(b);
Exist two types of casting:
Implicit
Explicit
But both ways given c =11 as a result!
[2]
[1]
[3]
[1]
[2]
[3]
[4]
[1]
[2]
y = f(x)
Function is a named part of a code that performs a distinct service.
[1]
[2]
[3]
[4]
[5]
function name () {
body;
}
[1]
[2]
[1]
[2]
[3]
[1]
* you can return one value only
* return always interrupts the execution.
* place your return at the end of a function
[2]
[3]
[3]
1.
1.
2.
3.
1.
2.
3.
4.
5.
6.
1.
2.
3.
4.
5.
6.
5.1
5.2
[1]
[2]
[3]
[4]
US Headquarters
12800 University Drive, Suite 250
Fort Myers, FL 33907, USA
Tel: 239-690-3111
Fax: 239-690-3116
Если не удалось найти и скачать презентацию, Вы можете заказать его на нашем сайте. Мы постараемся найти нужный Вам материал и отправим по электронной почте. Не стесняйтесь обращаться к нам, если у вас возникли вопросы или пожелания:
Email: Нажмите что бы посмотреть