Skip to content

learn-co-students/js-dom-and-events-acting-on-events-lab-houston-interns

Repository files navigation

Instructions

In this lab, you will creating a form that adds Scuber employees. It also allows us to clear the list of employees upon a click to the "Clear Employee List" link. We will build up to this functionality with small functions, so read the tests carefully.

You will find your tests underneath the HTML after you run learn-test. We'll be testing against this with the index.html document, but you should still write your code in index.js. Write the following functions:

  • retrieveEmployeeInformation(): This retrieves the employee information from the input. It returns a string equal to the value in the input.

  • addNewElementAsLi(): This function takes the value retrieved from the previous retrieveEmployeeInformation function and adds that string to a new list element which is appended to the ul with class "employee-list".

  • addNewLiOnClick(): This retrieves the employee information from the input.

  • retrieveEmployeeInformation(): This retrieves the employee information from the input.

  • retrieveEmployeeInformation(): This retrieves the employee information from the input.

Have fun, and good luck!

Resources

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published