-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjs2.js
More file actions
49 lines (39 loc) · 669 Bytes
/
Copy pathjs2.js
File metadata and controls
49 lines (39 loc) · 669 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
/*
for (let i = 0; i <= 10; i++) {
console.log(i)
}
let y = 0;
for (let x= 1; x <= 100; x++) {
y= x+y;
console.log(y)
}
let x = [10, 20, 30, 40, 50, 60, 70];
let y = 0;
for (let i=0; i < x.length; i++) {
y = y+x[i];
let z = y/x.length;
console.log(z)
}
let x = 10;
let y = 1;
for (i = 0; i <= 10; i++) {
y = y*(x-i);
console.log(y)
}
let x ='Blessing';
let y = 'Reversed x is ';
for (let i = x.length - 1; i >= 0; i--) {
y = y+ x[i];
console.log(y)
}
let y = 1
for (let i = 1; i <= 100; i++) {
y =
console.log(i)
}
*/
let y = 1;
while (y < 100) {
y = y + 2;
console.log(y)
}