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

assignment1

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

Assignment No.

-1

2 what are arithmetic and logical operator used in java script


4 write a script that reads an integer and displays whether it is a prime number or not
4 Explain the use of continue statement with the help of example
2 Explain the feature of javascript
2 what is conditional operator in javascript
4 Explain the terms-propery,method,dot syntax
4 Explain six types of values in javascript
4 Write a javascript to display welcome message in javascript
6 Develop a javascript to generate armstrong numbers between the range to 00
2 State the use of dot syntax in JavaScript with the help of suitable example.
2 List and explain Logical operators in JavaScript.
2 Write a JavaScript that identifies a running browser.
4 Write syntax of and explain prompt method in JavaScript with the help of suitable example.
4 Write a JavaScript that displays all properties of window object. Explain the code .
4 Write a JavaScript function that checks whether a passed string is palindrome or not.
2 Describe all the tokens of the following statements : document.bgColor document.write()
2 Differentiate between prompt() and alert() methods.
2 State use of getters and setters
2 Write a JavaScript that displays first 20 even numbers on the document window.
4 Write a program to print sum of even numbers between to 00 using for loop.
4 Write a JavaScript program which compute, the average marks of the following students
Then, this average is used to determine the corresponding grade.
UNIT I [12 Marks]

Basics of JavaScript Programming

1. Explain any two/ four features of JavaScript?

2. Write a JavaScript to display Welcome message in JavaScript.

3. Explain the term – Object Name, Property, Method, Dot syntax, main event.

4. Explain six type of values in JavaScript.

5. What is conditional operator in JavaScript?

6. List the different types of operator in JavaScript. Describe any one in details.

7. List the different types of popup box. Explain any of it with example.

8. Write a JavaScript to display squares of 1 to 10 numbers using while loop.

9. Write a JavaScript program that accept two integers and display the larger.

10. Write a JavaScript conditional statement to sort three numbers. Display an alert box to show the result.

11. Write a JavaScript for loop that will iterate from 0 to 15. For each iteration, it will check if the current number is
odd or even, and display a message to the screen.

12. Write a JavaScript conditional statement to find the largest of five numbers.

13. Write a JavaScript program to check from two given integers, if one is positive and one is negative.

14. Write a JavaScript program check if a given positive number is a multiple of 3 or a multiple of 7.

15. Write a JavaScript program to reverse a given string.

16. Write a JavaScript program to check number is Armstrong or not.

17. Write a JavaScript to display squares of 1 to 10 numbers using for loop.

18. Write a JavaScript program to find the area of a triangle where lengths of the three of its sides are 5, 6, 7.

19. Write a JavaScript program to construct the following pattern, using a nested for loop.

**

***

****

*****

You might also like