-
Notifications
You must be signed in to change notification settings - Fork 0
/
summary.js
40 lines (29 loc) · 865 Bytes
/
summary.js
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
var tableLength = 12;
var tourDestinations = ['Bangladesh', 'India', 'Nepal', 'Sri lanka', 'Bhutan', 'Mal dip', 'Paris'];
tourDestinations.indexOf('Bhutan');
var fourthDestination = tourDestinations[4];
tourDestinations[1] = 'London';
tourDestinations.push('USA');
tourDestinations.pop();
if (tourDestinations[1] == 'Nepal') {
console.log('Pahare ahare ahare');
}
else if (tourDestinations[1] == 'Chaina') {
console.log('China tor kase jamu na');
}
else if (tourDestinations.length == 4) {
console.log('aro taka asa besi ghurmu');
}
else {
console.log('Kothao jamu na bashay thakmu ar mosha marmu');
}
var eggPrice = 32;
var myBudget = 32;
if (eggPrice <= myBudget) {
console.log('ami dim khamu');
}
if (eggPrice >= myBudget) {
console.log('ami panta vaat khabo');
}
console.log(tourDestinations);
console.log(fourthDestination);