Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

Web Technology

KCA-021
Individual Assignment-2

1. Write a program in Java Script to design a calculator.


2. Write a program in Java Script to validate email id and password.
3. The following validations for different fields/controls are to be done:

 N a m e ( F i r s t , M i d d l e , L a s t N a m e ) - must not be blank, must con tain only


alphabets, length of theField must not exceed 50 characters
 Father’s Name ( same as above)
 Sex /Gender - one of the options must be selected
 Category -one of the options must be selected
 Address ( Multiple Lines-separate / combined )
o Line 1 (House No. ) - must not be blank
o Line 2 (Street )
o Line 3 ( Locality ) - must not be blank
o Line 4 ( Milestone ) - optional
4. Write a java script to validate an email address
5. Write a java script to validate phone number
6. Write a script to demonstrate the use of Date object
7. Write a script to display sum of first 10 numbers
8. Write a java script to manipulate array
9. Write a java script for blinking text on the screen
10. Write a java script for calculating the bill
11. Write a java Script for counting Odd, even and prime numbers from 1 to 100
12. Write a java script to find factorial of g iven number
13. Write a java script program to generate Fibonacci series using do while loop
14. Write a Java Script using for loop for displaying sum of firs t 150 numbers
15. If a=10 and b=20 write a java scrip t to swapping of these two numbers.
16. Write a java script which will greet according to the current timing
17. Write a java script for simple form processing
18. Generate following series using for loop 4,8,12,16...40 using java script
19. Generate following series using while loop 3,6,9,12,...30 using java script
20. Generate following series using until loop 2,5,8,...20 using java script
21. Write a program to print sum of odd numbers between 1 to 100 using for loop
22. Write a program to print sum of even numbers between 1 to 100 using for loop
23. Write a program to print sum of odd numbers between 1 to 50 using while loop
24. Write a java script to validate phone number in java script
25. Write a java script to validate date of birth in java script
26. Explain join and sort methods of array object in java script
27. Explain day, weekday, month , year properties of date object in java script
28. Explain Ceil and floor method of math object in java script with suitable example
29. Explain alert method of window object in java script with suitable example
30. Explain write and bgcolor property of document object
31. Explain back and forward property of history object in java script with suitable example
32. Explain location object in java script
33. Explain any two validation function in java script
34. Explain task specific pages and contact pages
35. Explain print specific pages and restricted printing pages
36. Explain the structure of java script program
37. Explain navigation specific pages
38. Write a java script program to calculate simple interest .
39. Write a simple java Script for displaying “Hello World” on the screen
40. Write a java script to calculate the area of the triangle
41. Write a Java Script to calculate the average of three numbers
42. Write a java script to demonstrate the background color
43. Write a java script fo r finding the greater number between two numbers
44. Write a Java Script for detecting mouse click event
45. Write a java script to demonstrate of checkbox and radio buttons.
46. Write a Java Script for detecting focus,onblur,on change,on select event.
47. Write a Java Script for on load,on unload,on mouse move event.

You might also like