Adekoya Dave 22/2/2024
Program
Online Class
Date
February 22, 2025
Arrival
4:56 pm
Departure
6:00 pm
Class
Mozilla (Web Intermediate)
Courses Learnt
Web Dev
Assignment
Write a JavaScript program that compares the ages of two people and determines whether they are eligible to vote based on a minimum voting age requirement.
Instructions:
Prompt the user to enter the age of Person A.
Prompt the user to enter the age of Person B.
Assume the minimum voting age requirement is 18.
Compare the ages of Person A and Person B using comparison operators.
Display a message indicating whether each person is eligible to vote or not.
Resources
Nil
Assessment (Last Week)
Nil
Comment
No comments
Parent’s Feedback
0 Comments