Javascript Practicle Program
Javascript Practicle Program
15.Write a program to input age and check age is greater than 18. (Using only
if).
16.Write a program to input age of student and print the student having age
less than 21 or greater than 21.(Using if else)
17.Write a program to input 2 numbers and print the maximum among them.
(Using if else).
18.Write a program to input 2 numbers and print the minimum among them.
(Using if else).
19.Write a program to input number from user and print it is odd or even.
(Using if else).
20.Write a program which takes full year and prints whether it is leap year or
not. (Using if else)
21.Write a program to input a character and print that is vowel or consonant.
(Using if else)
22.Write a program to get a character in lower case and print in upper case or
get character in upper case and print in lower case.
23. Write a program to enter number and check it is positive, negative or zero.
(Using else if)
24.Write a program to input 3 number and print the maximum among
them.(Using else if)
25.Write a program to input 3 number and print the minimum among
them.(Using else if)
26.Write a program to make mark sheet of student.
List of JavaScript Practical Programs
ABCDE
ABCDE
ABCDE
ABCDE
ABCDE
57.
*
**
***
****
*****
58.
1
22
333
4444
55555
59.
1
12
123
1234
12345
60.
5
54
543
5432
54321
61.
1
21
321
4321
54321
62.
List of JavaScript Practical Programs
1
2 3
4 5 6
7 8 9 10
11 12 13 14 15
63.
1
01
010
1010
10101
64.
1
10
10 1
10 1 0
10 1 0 1
65.
a
bc
def
ghij
klmno
66.
a
bb
ccc
dddd
eeeee
67.
z
yx
wvu
t s r q
p o n m l
68.
List of JavaScript Practical Programs
1
10
100
1000
10000
69.
5
45
345
2345
12345
70.
*****
****
***
**
*
71.
12345
1234
123
12
1
72.
1 2 3 4 5
2 4 6 8
3 6 9
4 8
5
73.
54321
5432
543
54
5
74.
List of JavaScript Practical Programs
54321
4321
321
21
1
75.
12345
2345
345
45
5
76.
55555
4444
333
22
1
77.
abcd e
bcd e
cde
de
e
78.
*
**
***
****
*****
79.
1
22
333
4444
55555
80.
List of JavaScript Practical Programs
1
12
123
1234
12345
81.
5
54
543
5432
54321
82.
a
bb
ccc
dddd
eeeee
83.
*
* *
* * *
* * * *
* * * * *