-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.js
More file actions
146 lines (120 loc) · 2.77 KB
/
script.js
File metadata and controls
146 lines (120 loc) · 2.77 KB
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
/*var num1=10;
var num2=15;
var num3=7;
var num4=12;
var num5=9;
if(num1 >= num2 && num1 >= num3 && num1 >= num4 && num1 > num5 ){
largest=num1;
}
else if(num2 => num1 && num2 > num3 && num2 > num4 && num2 > num5){
largest=num2;
}
else if(num3 => num1 && num3 > num2 && num3 > num4 && num3 > num5 ){
largest=num1;
}
else if(num4 => num1 && num4 > num2 && num4 > num3 && num4 > num5){
largest=num2;
}
else
{
largest=num5;
}
console.log("Ths is the largest number=" +largest);
var myName='Rajesh'
if(myName==='Khoksi'){
console.log("You are allowed")
}else{
console.log("You are not allowed")
}
var myAge=23;
if(myAge < 18){
console.log('You are now adult')
}
else{
console.log('You are not adult')
}
var whatDate='Khoksi';
if(whatDate === 'Saterday'){
console.log('This is reguar working day')
}
else if(whatDate === 'Sunday'){
console.log('This is also regular working days')
}
else if(whatDate === 'Monday'){
console.log('This is regular workng day')
}
else if(whatDate === 'Thurday'){
console.log('The day is regular working day')
}
else if(whatDate === 'Wedday'){
console.log('This is not holyday')
}
else if(whatDate === 'Khoksi'){
console.log('This is reguar half office day')
}
else if(whatDate === 'Friday'){
console.log('This is holyday')
}
else{
console.log('Nothing found this date list')
}
/*var rollNumber=prompt('Enter your roll number');
switch(rollNumber){
case 45:
console.log('Rajesh Khoksi')
break;
case 46:
console.log('Hilary Areng')
break;
case 50:
console.log('Thengsua Khoksi')
break;
default:
console.log('This roll number does not match in this list')
}
*/
/*
var firstNumber=prompt('Enter your first number');
var secondNumber=prompt('Enter your second number');
var thirdNumber=prompt('Enter the third number')
if(firstNumber >= secondNumber && firstNumber>= thirdNumber){
maxNumber=firstNumber;
}
else if(secondNumber >= firstNumber && secondNumber >= thirdNumber){
maxNumber=secondNumber;
}
else{
maxNumber=thirdNumber;
}
console.log('The number is maximum number=' +maxNumber);
var myAge=prompt('Enter your age');
if(myAge > 18){
if(myAge > 30){
console.log('You are a complete Man');
}
else if(myAge >= 60){
console.log('You are a Oldman');
}
else{
console.log('You are a Young Man');
}
}
else{
console.log('You are a Child');
}
*/
var myTitle='khoksi'
var myName='rajesh khoksi';
var fullName;
for(fullName='Hilary Areng'; fullName === myName; fullName++){
if(myTitle === 'khoksi'){
machong = myTitle;
}
else if(myName === "rajesh khoksi"){
machong = myName;
}
else{
machong = fullName;
}
console.log(machong)
}