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

Index

Uploaded by

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

Index

Uploaded by

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

JAVASCRIPT PRACTICAL

PART-A

S.NO NAME OF THE EXPERIMENT


Add JavaScript validations in registration form. Name text
1. field should not accept any digit; telephone number text
field should not accept characters. Display the
appropriate message in the status bar when any field
gains focus. Empty fields should not be allowed.
Create an html page that accepts Principal Amount, No. of
2. Years & Rate of Interest from 3 text fields, when you click
“Calculate Interest” button, the data is sent to a function
that returns the simple interest. When you click on “Final
Amount” button, the final amount by adding principal
amount and interest should be displayed.
Design a web page with a table with three cells, namely,
3. red, green and yellow. As soon as mouse is rolled over any
of these cells, the background color of the body should
change to that particular color.
Write a JavaScript code to study the String object and
4. various methods.
Write a JavaScript code display the browser
5. specifications.
Write a JavaScript code to read in a number and display
6. its multiplication table.
Write a JavaScript code to read in a number and state
7. whether it is prime or not.

Write a JavaScript code to read in an expression through


8. a prompt box, evaluate it and display the result in a
message box.
Write a JavaScript code to read in a number through a
9. prompt box, and display its factorial in a message box.

Write a JavaScript code to study the properties of the


10. History object.
JAVASCRIPT PRACTICAL
PART-A

S.NO NAME OF EXPERIMENT


1. Object Comparison in JavaScript

2. Converting CSV String to 2D Array of Objects in JavaScript.

3. Filtering Specified Values from an Array in JavaScript.

4. Combining Numbers into All Combinations in JavaScript.

5. Finding Minimum/Maximum Values in an Array Using a


Comparing Rule in JavaScript.

6. Splitting Array Values into Two Groups in JavaScript.

7. Getting the Current Date in JavaScript.

8. Splitting Values into Two Groups in JavaScript.


9. Computing Absolute Difference with Conditional
Multiplication in JavaScript Create sub functions or use
methods to format the date into mm-ddyyyy , mm/dd/yyyy ,
dd-mm-yyyy , and dd/mm/yyyy . Ensure the function returns
the date in the specified formats.
10. Checking for Substring Presence and Modification in
JavaScript.
11. Determining the Sign of the Product of Three Numbers in
JavaScript.
12. Finding the Closest Value to 100 in JavaScript.
13. Checking Number Sequences for Increasing Order in
JavaScript.
14. Checking Whether a Given Number is an Adam Number in
JavaScript.
15. Moving the Last Three Characters to the Start of a String in
JavaScript.

You might also like