CSS QB
CSS QB
2. Write a JavaScript that accepts a number and displays addition of digits of that number in a
message box.
3. Write and explain syntax of prompt( ) method in JavaScript. With example.
4. List the comparison operators in Java script
5. State the meaning of "Defining a function". Explain with the help of an example.
6. Enlist any four mouse events with their use.
7. List various assignment operators supported by JavaScript, explain any two with the help of
suitable example.
8. Differentiate between shift() and push() methods of an Array object.
9. List and explain any six form events.
10. Write an HTML Script that accept length and breadth from user and display area of rectangle
and triangle using function.
11. Differentiate between substring() and substr() method of a string class. Give Suitable
example of each.
12. Write the use of charAt() and indexof() with syntax and example
13. Explain concat() and join() methods of array object. with example.