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

Practice

Download as docx, pdf, or txt
Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1/ 2

Test 1

a) Describe all the tokens of the following statements :

i. console.log()
ii. alert()

iii. document.write()

b) State use of getters and setters

c) State and explain any two methods of array object

d) Write a program to print sum of even numbers between 1 to 100 using for loop.

e) Write Java script to call function from HTML.

f) 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”

…………

………....

Test 1 FOR OTO


1. Explain Object creation in JavaScript using ‘new’ keyword with adding properties and
methods with example.
2. State the features of Javascript
3. Write a javascript program to check whether entered number is prime or not.

4. List and explain operators in JavaScript.


5. Write a program to print sum of even numbers between 1 to 100 using for loop.
6. Write Java script to create person object with properties firstname, lastname, age, eye color,
delete eye color property and display remaining properties of person object.
7. State the ways to display the output in JavaScript

You might also like