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

Assignment No.1

The document outlines an assignment consisting of various JavaScript tasks, including explaining methods, data types, and intrinsic functions. It also includes programming exercises such as creating a calculator, generating Fibonacci series, and manipulating objects. Additionally, it covers control statements, operators, and output methods in JavaScript.

Uploaded by

mayur
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)
0 views2 pages

Assignment No.1

The document outlines an assignment consisting of various JavaScript tasks, including explaining methods, data types, and intrinsic functions. It also includes programming exercises such as creating a calculator, generating Fibonacci series, and manipulating objects. Additionally, it covers control statements, operators, and output methods in JavaScript.

Uploaded by

mayur
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
You are on page 1/ 2

Assignment No.

1
1 State the use of method in JavaScript with the help of suitable example.

2.List & Explain data types in JavaScript.

3.Write a simple calculator program using switch case in JavaScript

4.Describe property Getters & Setters

5.Enlist & explain the use of any two Intrinsic JavaScript Functions.

6.List any four features of Java script.

7.List the comparison operators in Java script.

8.Write a Java script to create person object with properties firstname,

lastname, age, eyecolor, delete eyecolor property and display remaining

properties of person object.

9.Write a javascript program for Fibonacci Series.

10.Write a program for Factorial of number.

11. Write a javascript program to check whether entered number is prime or not.

12.Explain Break and Continue statement in javascript.

13. Differentiate between For-loop and For-in loop.

14. State the ways to display the output in JavaScript.

15.List the logical operators in JavaScript with description.

16.Write JavaScript to create a object “student” with properties roll number,

name, branch, year. Delete branch property and display remaining properties

of student object.

17. Write a JavaScript for loop that will iterate from 1 to 15. For each iteration, it

will check if the current number is odd or even and display a message to the

screen.

Sample Output :

“1 is odd”

“2 is even”

…………
………....

18. State the use of method in JavaScript with the help of suitable example.

19. State meaning of each token of the following statement and describe it :

(i) ++a;

(ii) document. bgcolor;

20.Write and explain syntax of prompt() method in JavaScript.

21.List various assignment operators supported by JavaScript, explain any two


with the help of suitable example.

You might also like