0% found this document useful (0 votes)
5 views2 pages

Full Stack 6-9 Programs

The document outlines various JavaScript programming tasks involving pre-defined and user-defined objects, conditional statements, loops, and functions. It includes specific requirements for creating programs that utilize document, window, array, math, string, regex, and date objects, as well as conditional logic for user input and validation. Additionally, it describes the implementation of functions for mathematical operations and form validation in a registration page.

Uploaded by

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

Full Stack 6-9 Programs

The document outlines various JavaScript programming tasks involving pre-defined and user-defined objects, conditional statements, loops, and functions. It includes specific requirements for creating programs that utilize document, window, array, math, string, regex, and date objects, as well as conditional logic for user input and validation. Additionally, it describes the implementation of functions for mathematical operations and form validation in a registration page.

Uploaded by

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

7.

Java Script Pre-defined and User-defined Objects

a. Write a program using document object properties and methods.

b. Write a program using window object properties and methods.

c. Write a program using array object properties and methods.

d. Write a program using math object properties and methods.

e. Write a program using string object properties and methods.

f. Write a program using regex object properties and methods.

g. Write a program using date object properties and methods

. h. Write a program to explain user-defined object by using properties, methods, accessors,


constructors and display.

8. Java Script Conditional Statements and Loops

a. Write a program which asks the user to enter three integers, obtains the numbers from the user and
outputs HTML text that displays the larger number followed by the words “LARGER NUMBER” in an
information message dialog. If the numbers are equal, outputHTML text as “EQUAL NUMBERS”.

b. Write a program to display week days using switch case.

c. Write a program to print 1 to 10 numbers using for, while and do-while loops.

d. Write aprogram to print data in object using for-in, for-each and for-of loops

e. Develop a program to determine whether a given number is an ‘ARMSTRONG NUMBER’ or not. [Eg:
153 is an Armstrong number, since sum of the cube of the digits is equal to the number i.e.,13 + 53+ 33
= 153]

f. Write a program to display the denomination of the amount deposited in the bank in terms of 100’s,
50’s, 20’s, 10’s, 5’s, 2’s & 1’s. (Eg: If deposited amount is Rs.163, the outputshould be 1-100’s, 1-50’s, 1-
10’s, 1-2’s & 1-1’s)

9. Java Script Functions and Events

a. Design a appropriate function should be called to display

i. Factorial of that number

ii. Fibonacci series up to that number

iii. Prime numbers up to that number


iv. Is it palindrome or not

b. Design a HTML having a text box and four buttons named Factorial, Fibonacci, Prime, and Palindrome.
When a button is pressed an appropriate function should be called to display

i. Factorial of that number

ii. Fibonacci series up to that number

iii. Prime numbers up to that number

iv. Is it palindrome or not

c. Write a program to validate the following fields in a registration page

[Link] (start with alphabet and followed by alphanumeric and the length should not be less than 6
characters)

ii. Mobile (only numbers and length 10 digits)

iii. E-mail (should contain format like xxxxxxx@[Link])

You might also like