-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOperaatorid
More file actions
58 lines (45 loc) · 829 Bytes
/
Copy pathOperaatorid
File metadata and controls
58 lines (45 loc) · 829 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
== equals
< > less or more than
>= more than equal
<= less than equal
&& and
|| or
! negates the expression
= assignment
% jäägiga jagamine
. otsib parempoolset sõna vasakpoose asja seest
[] teeb uue array
muutuja[0] otsib esimest asja muutuja seest
Andmetüübid:
Number(Float, double, integer)
string
boolean
array(List, masiiv)
undefined null - tühi muutuja
object (Dictionary, Map, HashMap, assocative array)
õpetajad = [
"Timo",
"Kaspar",
"Vadim",
,
]
õpetajad.push("Marko")
.splice
Control the flow ja conditionals
if, while, for loops
if syntax:
if (conditional){
}
else if (conditional)(
)
else{
}
while syntax:
while (conditional){
}
for syntax:
| not included
start value |
repeat again if true | step size
for(initaliation; condition;
increment)