WDV221 Intro Javascript

Project-4 Compare Numbers and Names

Please complete the following exercises on this page. When complete post the page to your WDV221 folder on the server. Make a link in your WDV221 Intro Javascript page for this assignment. Contact your instructor and demonstrate that you have completed the assignment.

Using Blackboard complete the In Class Exercise Assignment. Download your Homework project and being working on it with your remaining time.

Use this form to gather input and display results.

Value 1:

Value 2:


1. Create a function called compareNumbers( ) that will compare two numbers entered in the form above. The function should display the largest number or "Equal" if both values are the same.

2. Create a function called compareNames( ) that will compare two names entered in the form above. The comparison should NOT be case sensitive. The function should display "Same" or "Different".