Homework Assignment 1: Personal Introduction

Create an HTML page with embedded JavaScript that prompts the user for their name and age. After obtaining the user's information, display a personalized welcome message in the console, such as:

Hello, [name]! You are [age] years old.

Homework Assignment 2: Calculate and Display

Create a simple webpage that allows users to input two numbers. Then, write JavaScript code that calculates and displays the sum, difference, product, and quotient of these two numbers when a button is clicked. Ensure that the results are shown on the webpage, not just in the console.


Homework Assignment 3: Interactive Quiz

Design an interactive JavaScript quiz in an HTML page. Create a series of multiple-choice questions and use JavaScript to grade the quiz when the user submits their answers. Display the user's score at the end of the quiz and provide feedback on their performance.


Homework Assignment 4: Temperature Converter

Build a temperature converter application. Create an HTML page with two input fields: one for entering a temperature in Fahrenheit and another for displaying the converted temperature in Celsius. Write JavaScript code that updates the Celsius value whenever the user enters a new temperature in Fahrenheit.


Homework Assignment 5: Alert and Prompt Challenge

Create an HTML page with a button. When the button is clicked, display an alert with a random math problem (e.g., addition or subtraction) and prompt the user for their answer. Check if the user's answer is correct and display a corresponding message in an alert.


Homework Assignment 6: Personal Portfolio Page

I Encourage students to build a simple personal portfolio page using HTML and JavaScript. They can include their name, a brief bio, and links to projects or social media profiles. Additionally, they can add interactivity, such as hover effects, to enhance the page.