List of All Important Questions for JavaScript (22519)
Unit I: Basics of JavaScript Programming
1. Explain any two features of JavaScript.
2. Write a JavaScript program to display a Welcome message.
3. Write a JavaScript program to check whether a number is even or odd.
4. Write a JavaScript program to display squares of numbers from 1 to 10 using a loop.
Unit II: Array, Function, and String
1. Define an array and explain how to declare it.
2. Write a JavaScript program to reverse a string.
3. Explain the use of `push()` and `pop()` methods in JavaScript.
Unit III: Form and Event Handling
1. What is an event handler? Give an example.
2. Write a JavaScript program to validate a form with a name and email field.
Unit IV: Cookies and Browser Data
1. Write a JavaScript program to create, read, and delete a cookie.
2. Explain the `window.open()` method with an example.
Unit V: Regular Expression, Rollover, and Frames
1. Write a regular expression to validate an email address.
2. Write a JavaScript program to implement a rollover effect for images.
Unit VI: Menus, Navigation, and Web Page Protection
1. Write a JavaScript program to create a floating menu.
2. Write a JavaScript program to disable right-click on a webpage.