Question: //Lab9-1.htm Lab 9-1: Employee Database Employee Database Select name to view information: Select Employee In this lab, you will create and instantiate a custom object.





//Lab9-1.htm
} // Instantiate 3 instances of employeeObject // Important - Start your array index numbers with 1 var employees = new Array(); employees[0] = "Select Employee"; ("Mai Li", "Sales", 551); ("Maria Alvarez", "Human Resources", 441); ("Tom Smith", "Marketing", 331); len = employees.length; function showEmployee() { var info = ""; // Complete the showEmployee() function alert(info); }
function showAllEmployees() { var info = ""; for (var i = 1; i
//-->
Employee Database
In this lab, you will create and instantiate a custom object. You will then write code to display data pertaining to the custom object. 1. Editor: Open the lab9-1.htm file from the Lesson 9 folder of the Student _Files directory. Editor: Locate the comment that reads as follows: // Complete the employee0bject constructor 2. Editor: Complete the employee0bject constructor function that has been started for you. Add the properties that you see listed in the employee0bject constructor signature. Also add a method named showEmployee. 3. 4. Editor: Locate the comment that reads as follows: // Instantiate 3 instances of employeeobject Editor: Instantiate three instances of employeeObject. Use the employees array that has been declared for you. Note that the first element of the employees array has already been defined. Make sure you start your array index numbers with 1 for the first employee. The values for the employeeObject properties have been provided for you. 8. 6. Editor: Locate the comment that reads as follows: // Complete the showEmployeeO function In this lab, you will create and instantiate a custom object. You will then write code to display data pertaining to the custom object. 1. Editor: Open the lab9-1.htm file from the Lesson 9 folder of the Student _Files directory. Editor: Locate the comment that reads as follows: // Complete the employee0bject constructor 2. Editor: Complete the employee0bject constructor function that has been started for you. Add the properties that you see listed in the employee0bject constructor signature. Also add a method named showEmployee. 3. 4. Editor: Locate the comment that reads as follows: // Instantiate 3 instances of employeeobject Editor: Instantiate three instances of employeeObject. Use the employees array that has been declared for you. Note that the first element of the employees array has already been defined. Make sure you start your array index numbers with 1 for the first employee. The values for the employeeObject properties have been provided for you. 8. 6. Editor: Locate the comment that reads as follows: // Complete the showEmployeeO function
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
