0% found this document useful (0 votes)
28 views

Java Script Index

The document outlines 26 programming exercises for students to complete using JavaScript. The exercises cover basic concepts like user input, arithmetic operations, conditional logic, loops, functions, objects, and DOM manipulation. Students are asked to write programs that perform tasks like name input, number operations, menu driven programs, swapping values, checking even/odd, calculating squares and cubes, and more.

Uploaded by

YashGama
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
28 views

Java Script Index

The document outlines 26 programming exercises for students to complete using JavaScript. The exercises cover basic concepts like user input, arithmetic operations, conditional logic, loops, functions, objects, and DOM manipulation. Students are asked to write programs that perform tasks like name input, number operations, menu driven programs, swapping values, checking even/odd, calculating squares and cubes, and more.

Uploaded by

YashGama
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Index

Java Script
S.NO TEACHER
PROGRAM DATE
. SIGN.
Write a program in JavaScript to display a username
1. by taking the input from the user.

Perform the following operations using JavaScript:


Addition, subtraction, division and multiplication by
2.
taking the input from the user.

Write a program to create a menu driven program


that performs different operations like: addition,
3. subtraction, multiplication and division. Take input
from user.

Perform swapping of two numbers by using


4. temporary variable.

Check whether the number entered by the user is


5. even or odd

Calculate the square and cube of a number entered


6. by the user.

Write a program to find the greatest number among


7. three numbers with or without using functions.

Write a program to find out whether the person is an


adolescent, Teenager, adult or senior citizen on the
8.
basis of age entered by the user??

Write a program to find the factorial of a number


9. entered by the user.

Write a program to show the usage of alert box.


10.
Write a program to show the usage of confirm box.
11.
Write a program to show the usage of comments for
12. single line and multiline.

13. Write a program to perform swapping of two


numbers without using temp variable by using
function.
Write a program to print the numbers from 1 to 10
14. using for loop

Write a program to print the table of a number


15. entered by the user using for loop.

Write a program to calculate the sum of first 10


16. numbers by using while loop.

Write a program to print the Fibonacci series by


17. using functions.

Write a program to add two numbers by using


18.
parameterized function.
Write a program to show the usage of window
19.
object.
Write a program to show the usage of onclick,
20. onmouseover and onmouseout events.

Write a program to display the current day and time.


21.
Write a program to show the usage of all the date
22.
object functions
Write a program to show the usage of math object.
23.
Write a program to show the usage of string object
functions: (a)indexOf (b),lastIndexOf (c)substr
24. (d)bold (e)italics (f)sup (g)sub (h)charAt (i)match
(j)replace

Write a program to use font tag in JavaScript


25.
Write a program to show the usage of external
26. JavaScript file.

You might also like