This challenge involves adding the missing javaScript code from the starter code for the employee payroll tracker.
- Description
- features
- Source and attribution
- Code source and attribution
- Screenshots
- Link to deployed application
The complete JavaScript code displayed on the page an "add employee" button, a series of prompts asking for the first name, last name, and salary. A employee data is displayed on the page sorted alphabetically by last name, and the console shows computed and aggregated data.
Added three main JavaScript functions to the starter code: Function collectEmployees to create and return an array of employees, Function displayAverageSalary to calculate and display the average salary, and Function getRandomEmployee to select and display a random employee.
The Xpert Learning Assistant from bootcampspot.instructure.com helped to understand the logic structure from this challenge and to debugging some issues.
https://bootcampspot.instructure.com/courses/5362/external_tools/313
The ChatGPT 3.5 from https://chat.openai.com helped to create and inspired the code implementations for this challenge.
All code implementations within this challenge, were inspired by external guidance. The JavaScript code in this challenge was provided by an AI assistant (Xpert Learning Assistant, ChatGPT or OpenAI). I (The author) did not independently author the code but instead i received guidance and solutions from the AI assistants.

