0% found this document useful (0 votes)
2 views1 page

Javascript Programs

The document provides a list of 25 event-driven JavaScript programming tasks. Each task involves user interaction to perform various operations such as comparing numbers, calculating areas, displaying factorials, and generating number tables. The tasks are designed to enhance understanding of event handling and basic arithmetic operations in JavaScript.

Uploaded by

aniketsakhare148
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views1 page

Javascript Programs

The document provides a list of 25 event-driven JavaScript programming tasks. Each task involves user interaction to perform various operations such as comparing numbers, calculating areas, displaying factorials, and generating number tables. The tasks are designed to enhance understanding of event handling and basic arithmetic operations in JavaScript.

Uploaded by

aniketsakhare148
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

1.

Write an event driven JavaScript program to accept 2 numbers and display which number is
greater
2. Write an event driven JavaScript program to accept number and determine if it is greater than
100 less than 100 or equal to 100.
3. Write an event driven JavaScript program to accept three numbers and display addition and
multiplication of the numbers
4. Write an event driven JavaScript program to display area of a circle. Accept radius from the
user(area=3.14*r*r)
5. Write an event driven JavaScript program to display cube of accepted number on click of a
button
6. Write an event driven JavaScript program to display division and subtraction of two accepted
numbers using on Click event.
7. Write an event driven JavaScript program to display Double of accepted number on click of a
button.
8. Write an event driven JavaScript program to display even numbers between 50 to 100
9. Write an event driven JavaScript program to display factorial of 5 when mouse is moved on
the button.
10. Write an event driven JavaScript program to display factorial of accepted number (EG
4=1X2X3X4=24).
11. Write an event driven JavaScript program to display multiplication of two accepted numbers
on click of a button.
12. Write an event driven JavaScript program to display odd numbers from 50 to 100 when the
mouse is moved ever a button.
13. Write an event driven JavaScript program to display square of accepted number on click of a
button
14. Write an event driven JavaScript program to display sum of 1 to 10 numbers.
15. Write an event driven JavaScript program to display table of Accepted number (EG 2x1 = 2
2X2=4 ….)
16. Write an event driven JavaScript program to display whether accepted number is even or odd
17. Write event driven JavaScript program to display area of circle
18. Write event driven JavaScript program to find and display factorial of 5.
19. Write event driven program in java script to accept height and base from the user and find
area of triangle. (Area= ½ *base*height)
20. Write JavaScript code to accept any number is divisible by 5 and 7 after mouse button is
clicked.
21. Write JavaScript event driven program to display all even numbers from 1 to 10.
22. Write JavaScript event driven program to display all even numbers from 101 to 500.
23. Write JavaScript event driven program to display double of accepted number
24. Write JavaScript event driven program to display table of 7.
25. Write JavaScript event driven program to display table of accepted number

You might also like