CSS Assign 1 (2024-25)
CSS Assign 1 (2024-25)
Q2. Explain data types in Javascript. State the ways to display the output in JavaScript.
Q.3 Explain getter and setter properties in Java script with suitable example.
Q.4. Write a Java script to create person object with properties firstname,
Q.5 Explain prompt() and confirm() method of Java script with syntax and
example.
Q.6. Write a Java script program which computes, the average marks of the
grade.
Kalpesh 77
Amit 88
Tejas 93
Abhishek 65
Range Grade
<60 E
<70 D
<80 C
<90 B
<100 A
Q.10. 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”
…………
………....