Chapterwise Questions Bank (1)
Chapterwise Questions Bank (1)
10. Write a JavaScript program to calculate add, subtract, multiply, and divide operations with user
inputs.
11. Write a JavaScript function that will open a new window upon a button click.
4. Write a JavaScript to create a person object with properties (`firstname`, `lastname`, `age`,
5. Write a JavaScript that initializes an array called `flowers` with names of 3 flowers and displays
the elements.
6. Differentiate between `concat()` and `join()` methods of an array object.
7. Write a JavaScript function to merge two arrays & remove duplicate values.
8. Write and explain string functions for converting string to number and number to string.
10. Write a JavaScript function to display five elements of an array in sorted order.
12. Write a JavaScript program to create a slideshow with three images, simulating next and
previous transitions.
13. Write a JavaScript function to merge two arrays and remove duplicates.
3. Explain the `open()` method of the window object with syntax and example.
4. Write a JavaScript to modify the status bar using `onMouseOver` and `onMouseOut`.
5. Write a JavaScript program that creates a pull-down menu with three options and redirects to the
corresponding website.
7. Write a JavaScript program to implement a frame structure for linking multiple pages.
9. Write a JavaScript program to access elements of another child window using JavaScript.
1. Write the use of `charAt()` and `indexOf()` with syntax and examples.
2. Write a JavaScript that replaces a specific value in a string (`"fail"` with `"pass"`).
3. Describe regular expressions and explain the `search()` method with an example.
4. How to find non-matching characters in a regular expression? Explain with an example.
6. Write a JavaScript program that will display the current date in `DD/MM/YYYY` format.
7. Write a JavaScript program to replace text using regular expressions with an example.
1. Write a JavaScript to design a form to accept values for user ID and password.
3. Write a JavaScript program that validates user accounts for multiple sets of user IDs and
passwords.
4. Write a JavaScript program that displays a form and validates fields such as name, email ID, and
pin code.
8. Write a JavaScript program to create a dropdown menu with options that change the background
9. Write a JavaScript program to design an HTML page with book information in a table format.
10. Write a JavaScript program to validate user input for name, email, and password.
3. Develop a JavaScript program for a slideshow with next and previous transitions.
5. Write a JavaScript program to open a new window with two frames, displaying a button in one
frame and an image in another.
6. Write a JavaScript program to implement `For` and `For-In` loops and differentiate between them.
9. Write a JavaScript program to implement cookies with read, update, and delete functionality.