Quiz 2

1. Task:

• Create a webpage where the user enters a number.
• When clicking a button, the number should be added to an array.
• Another button should filter only even numbers and display them on the screen.

Answer:

2. Task:

• The user enters a product name and price.
• On button click, the product should be added to an array of objects.
• All products should be displayed on the screen.

Answer:

3. Task:

• The user enters text and selects bold, italic, or colored styling.
• On button click, the selected style should be applied. Html

Answer:

Here is Text